mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Retry timeout and retryable error
This commit is contained in:
2
ring.go
2
ring.go
@ -597,7 +597,7 @@ func (c *Ring) _process(ctx context.Context, cmd Cmder) error {
|
||||
}
|
||||
|
||||
lastErr = shard.Client.Process(ctx, cmd)
|
||||
if lastErr == nil || !isRetryableError(lastErr, cmd.readTimeout() == nil) {
|
||||
if lastErr == nil || !shouldRetry(lastErr, cmd.readTimeout() == nil) {
|
||||
return lastErr
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user