Skip to content

Commit 6725851

Browse files
authored
Merge pull request #2071 from ray2011/master
fix retryTimeout in baseClient _process
2 parents 2fbf8d5 + fca64a6 commit 6725851

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

redis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ func (c *baseClient) _process(ctx context.Context, cmd Cmder, attempt int) (bool
335335
}
336336
}
337337

338-
retryTimeout := uint32(1)
338+
retryTimeout := uint32(0)
339339
err := c.withConn(ctx, func(ctx context.Context, cn *pool.Conn) error {
340340
err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
341341
return writeCmd(wr, cmd)

0 commit comments

Comments
 (0)