Merge branch 'master' of github.com:go-redis/redis

This commit is contained in:
Vladimir Mihailenco 2020-11-15 14:31:14 +02:00
commit 7bd3bffc5b
1 changed files with 3 additions and 0 deletions

View File

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