1
0
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:
Ichinose Shogo
2017-02-24 18:03:21 +09:00
committed by Vladimir Mihailenco
parent fe9d145e7c
commit b8fb4a1150
2 changed files with 4 additions and 2 deletions

View File

@ -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
}