Update manage.go

This commit is contained in:
Ghostz 2024-08-31 14:23:37 +08:00 committed by GitHub
parent 82f34d3b11
commit 635a26f2fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {