fix: retry dial errors from pipelines

This commit is contained in:
Vladimir Mihailenco 2022-10-11 09:38:10 +03:00
parent 1de0d2a1b7
commit 4bb485d044
1 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,8 @@ func (c *baseClient) _generalProcessPipeline(
}
}
var canRetry bool
// Enable retries by default to retry dial errors returned by withConn.
canRetry := true
lastErr = c.withConn(ctx, func(ctx context.Context, cn *pool.Conn) error {
var err error
canRetry, err = p(ctx, cn, cmds)