chore: 调整403重试次数跟间隔

This commit is contained in:
shaw
2025-12-25 16:23:31 +08:00
parent 25a304c231
commit 8fbe1ad70d

View File

@@ -362,8 +362,8 @@ func (s *GatewayService) getOAuthToken(ctx context.Context, account *model.Accou
// 重试相关常量
const (
maxRetries = 3 // 最大重试次数
retryDelay = 2 * time.Second // 重试等待时间
maxRetries = 5 // 最大重试次数
retryDelay = 6 * time.Second // 重试等待时间
)
// shouldRetryUpstreamError 判断是否应该重试上游错误