Update manage.go
This commit is contained in:
parent
82f34d3b11
commit
635a26f2fd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user