Skip to content

Commit

Permalink
fix: set timeout for WAIT command. Fixes #1963
Browse files Browse the repository at this point in the history
  • Loading branch information
vmihailenco committed Dec 26, 2021
1 parent f737d9a commit 333fee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands.go
Expand Up @@ -431,6 +431,7 @@ func (c statefulCmdable) AuthACL(ctx context.Context, username, password string)

func (c cmdable) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd {
cmd := NewIntCmd(ctx, "wait", numSlaves, int(timeout/time.Millisecond))
cmd.setReadTimeout(timeout)
_ = c(ctx, cmd)
return cmd
}
Expand Down

0 comments on commit 333fee1

Please sign in to comment.