feat: 请求成功时不再重置失败

This commit is contained in:
tbphp
2025-07-14 20:21:19 +08:00
parent a7ace5dc42
commit ee400afbcd

View File

@@ -218,7 +218,7 @@ func (ps *ProxyServer) executeRequestWithRetry(
return
}
ps.keyProvider.UpdateStatus(apiKey, group, true)
// ps.keyProvider.UpdateStatus(apiKey, group, true) // 请求成功不再重置成功次数减少IO消耗
logrus.Debugf("Request for group %s succeeded on attempt %d with key %s", group.Name, retryCount+1, utils.MaskAPIKey(apiKey.KeyValue))
ps.logRequest(c, group, apiKey.ID, startTime, resp.StatusCode, retryCount+1, nil, isStream, upstreamURL)