Update manage.go

This commit is contained in:
Ghostz
2024-08-31 14:23:37 +08:00
committed by GitHub
parent 82f34d3b11
commit 635a26f2fd

View File

@@ -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 {