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
1 changed files with 1 additions and 1 deletions

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 := c.withConn(ctx, func(ctx context.Context, cn *pool.Conn) error {
err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error { err := cn.WithWriter(ctx, c.opt.WriteTimeout, func(wr *proto.Writer) error {
return writeCmd(wr, cmd) return writeCmd(wr, cmd)