Browse Source

ignore context.Canceled for redis breaker (#1545)

Kevin Wan 3 years ago
parent
commit
9e113909b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/stores/redis/redis.go

+ 1 - 1
core/stores/redis/redis.go

@@ -2358,7 +2358,7 @@ func WithTLS() Option {
 }
 
 func acceptable(err error) bool {
-	return err == nil || err == red.Nil
+	return err == nil || err == red.Nil || err == context.Canceled
 }
 
 func getRedis(r *Redis) (RedisNode, error) {