Skip to content

Commit 4bb485d

Browse files
committed
fix: retry dial errors from pipelines
1 parent 1de0d2a commit 4bb485d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

redis.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,8 @@ func (c *baseClient) _generalProcessPipeline(
413413
}
414414
}
415415

416-
var canRetry bool
416+
// Enable retries by default to retry dial errors returned by withConn.
417+
canRetry := true
417418
lastErr = c.withConn(ctx, func(ctx context.Context, cn *pool.Conn) error {
418419
var err error
419420
canRetry, err = p(ctx, cn, cmds)

0 commit comments

Comments
 (0)