Skip to content

Commit 333fee1

Browse files
committed
fix: set timeout for WAIT command. Fixes #1963
1 parent f737d9a commit 333fee1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commands.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,7 @@ func (c statefulCmdable) AuthACL(ctx context.Context, username, password string)
431431

432432
func (c cmdable) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd {
433433
cmd := NewIntCmd(ctx, "wait", numSlaves, int(timeout/time.Millisecond))
434+
cmd.setReadTimeout(timeout)
434435
_ = c(ctx, cmd)
435436
return cmd
436437
}

0 commit comments

Comments
 (0)