ignore context.Canceled for redis breaker (#1545)

master
Kevin Wan 3 years ago committed by GitHub
parent bd105474ca
commit 9e113909b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2358,7 +2358,7 @@ func WithTLS() Option {
} }
func acceptable(err error) bool { 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) { func getRedis(r *Redis) (RedisNode, error) {

Loading…
Cancel
Save