mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
the timeout of WAIT command is in milliseconds.
This commit is contained in:
committed by
Vladimir Mihailenco
parent
fe9d145e7c
commit
b8fb4a1150
@ -273,7 +273,7 @@ func (c *cmdable) Ping() *StatusCmd {
|
||||
|
||||
func (c *cmdable) Wait(numSlaves int, timeout time.Duration) *IntCmd {
|
||||
|
||||
cmd := NewIntCmd("wait", numSlaves, int(timeout/time.Second))
|
||||
cmd := NewIntCmd("wait", numSlaves, int(timeout/time.Millisecond))
|
||||
c.process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
Reference in New Issue
Block a user