From fca64a6a7089c2397b7a191d8a4588b91f1b4c99 Mon Sep 17 00:00:00 2001 From: raynor Date: Sat, 4 Jun 2022 00:41:55 +0800 Subject: [PATCH] fix(baseClient): fix retryTimeout in _process, default value should be 0 --- redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redis.go b/redis.go index bcf8a2a..5673694 100644 --- a/redis.go +++ b/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)