1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-25 08:21:55 +03:00

Merge pull request #1557 from wziww/master

CLUSTER_REDIR_UNSTABLE error should be retry
This commit is contained in:
Vladimir Mihailenco
2020-11-12 13:58:37 +02:00
committed by GitHub

View File

@ -52,6 +52,9 @@ func shouldRetry(err error, retryTimeout bool) bool {
if strings.HasPrefix(s, "CLUSTERDOWN ") {
return true
}
if strings.HasPrefix(s, "TRYAGAIN ") {
return true
}
return false
}