forked from mirror/redis
fix(baseClient): fix retryTimeout in _process, default value should be 0
This commit is contained in:
parent
99c79f7041
commit
fca64a6a70
2
redis.go
2
redis.go
|
@ -325,7 +325,7 @@ func (c *baseClient) _process(ctx context.Context, cmd Cmder, attempt int) (bool
|
|||
}
|
||||
}
|
||||
|
||||
retryTimeout := uint32(1)
|
||||
retryTimeout := uint32(0)
|
||||
err := c.withConn(ctx, func(ctx context.Context, cn *pool.Conn) error {
|
||||
err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
|
||||
return writeCmd(wr, cmd)
|
||||
|
|
Loading…
Reference in New Issue