1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-16 09:23:06 +03:00

fix(baseClient): fix retryTimeout in _process, default value should be 0

This commit is contained in:
raynor 2022-06-04 00:41:55 +08:00
parent 99c79f7041
commit fca64a6a70

View File

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