修复命中限流重试的BUG

This commit is contained in:
白茶清欢 2025-05-07 16:37:58 +08:00
parent b335d7c2bb
commit 38f97bc69f

View File

@ -383,7 +383,7 @@ func (hc *HttpClient) requestBackendApi() *define.Response {
"err_type": errType,
"err_msg": err.Error(),
}, hc.reqCfg)
if errType == define.RequestFailTypeSend {
if errType == define.RequestFailTypeRateLimit {
// 命中限流就不重试了
log.RecordDebug("请求命中限流, 忽略重试策略, 不进行重试", nil, hc.reqCfg)
break