Skip to content

Commit fca64a6

Browse files
committed
fix(baseClient): fix retryTimeout in _process, default value should be 0
1 parent 99c79f7 commit fca64a6

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
@@ -325,7 +325,7 @@ func (c *baseClient) _process(ctx context.Context, cmd Cmder, attempt int) (bool
325325
}
326326
}
327327

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

0 commit comments

Comments
 (0)