diff --git a/monitor/manage.go b/monitor/manage.go index 1ca60b1e4b..aa67e3f0d0 100644 --- a/monitor/manage.go +++ b/monitor/manage.go @@ -15,7 +15,7 @@ func ShouldDisableChannel(err *model.Error, statusCode int) bool { if err == nil { return false } - if statusCode == http.StatusUnauthorized || statusCode == http.StatusTooManyRequests { + if statusCode == http.StatusUnauthorized{ return true } switch err.Type {