forked from mirror/redis
Merge pull request #2071 from ray2011/master
fix retryTimeout in baseClient _process
This commit is contained in:
commit
6725851465
2
redis.go
2
redis.go
|
@ -335,7 +335,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