1
0
mirror of https://github.com/redis/go-redis.git synced 2025-04-17 20:17:02 +03:00

TRYAGAIN error should be retry

This commit is contained in:
wziww 2020-11-12 17:47:04 +08:00
parent fa2e0da4e8
commit e0aa8939c7

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
}