Merge pull request #2071 from ray2011/master

fix retryTimeout in baseClient _process
This commit is contained in:
Vladimir Mihailenco 2022-10-06 10:05:25 +03:00 committed by GitHub
commit 6725851465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,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)