diff --git a/httpclient/client.go b/httpclient/client.go index b90c6c7..a04b873 100644 --- a/httpclient/client.go +++ b/httpclient/client.go @@ -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