From 635a26f2fdf066ff6c31f738c9297454f7b29855 Mon Sep 17 00:00:00 2001 From: Ghostz <137054651+ye4293@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:23:37 +0800 Subject: [PATCH] Update manage.go --- monitor/manage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {