refactor: simplify ShouldDisableChannel function by removing unused parameters and commented-out code

This commit is contained in:
CaIon
2026-04-16 20:56:44 +08:00
parent 3cad6b9d7f
commit 22e509c1ef
3 changed files with 3 additions and 38 deletions
+1 -1
View File
@@ -830,7 +830,7 @@ func testAllChannels(notify bool) error {
newAPIError := result.newAPIError
// request error disables the channel
if newAPIError != nil {
shouldBanChannel = service.ShouldDisableChannel(channel.Type, result.newAPIError)
shouldBanChannel = service.ShouldDisableChannel(result.newAPIError)
}
// 当错误检查通过,才检查响应时间