mirror of
https://github.com/redis/go-redis.git
synced 2025-11-01 04:11:05 +03:00
Retry BadConnError
This commit is contained in:
@@ -809,7 +809,7 @@ func (c *ClusterClient) process(ctx context.Context, cmd Cmder) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if isRetryableError(err, true) {
|
||||
if isRetryableError(err, cmd.readTimeout() == nil) {
|
||||
// First retry the same node.
|
||||
if attempt == 0 {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user