From 0bb7db0b4450d9f22008103585bfdbf90064ecd2 Mon Sep 17 00:00:00 2001 From: JustSong Date: Fri, 5 Apr 2024 12:11:50 +0800 Subject: [PATCH] fix: do not detect quota field in error message (close #1276) --- relay/util/common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/relay/util/common.go b/relay/util/common.go index d1f79a26..5d787204 100644 --- a/relay/util/common.go +++ b/relay/util/common.go @@ -46,9 +46,9 @@ func ShouldDisableChannel(err *relaymodel.Error, statusCode int) bool { } else if strings.HasPrefix(err.Message, "This organization has been disabled.") { return true } - if strings.Contains(err.Message, "quota") { - return true - } + //if strings.Contains(err.Message, "quota") { + // return true + //} if strings.Contains(err.Message, "credit") { return true }