fix: 删除未使用的字段修复 lint 错误

This commit is contained in:
song
2026-01-17 10:40:28 +08:00
parent 78bccd032d
commit 31933c8a60

View File

@@ -39,14 +39,12 @@ type antigravityRetryLoopParams struct {
body []byte
quotaScope AntigravityQuotaScope
httpUpstream HTTPUpstream
accountRepo AccountRepository
handleError func(ctx context.Context, prefix string, account *Account, statusCode int, headers http.Header, body []byte, quotaScope AntigravityQuotaScope)
}
// antigravityRetryLoopResult 重试循环的结果
type antigravityRetryLoopResult struct {
resp *http.Response
usedBaseURL string
resp *http.Response
}
// antigravityRetryLoop 执行带 URL fallback 的重试循环
@@ -144,7 +142,7 @@ urlFallbackLoop:
antigravity.DefaultURLAvailability.MarkSuccess(usedBaseURL)
}
return &antigravityRetryLoopResult{resp: resp, usedBaseURL: usedBaseURL}, nil
return &antigravityRetryLoopResult{resp: resp}, nil
}
// shouldRetryAntigravityError 判断是否应该重试
@@ -685,7 +683,6 @@ func (s *AntigravityGatewayService) Forward(ctx context.Context, c *gin.Context,
body: geminiBody,
quotaScope: quotaScope,
httpUpstream: s.httpUpstream,
accountRepo: s.accountRepo,
handleError: s.handleUpstreamError,
})
if err != nil {
@@ -1166,7 +1163,6 @@ func (s *AntigravityGatewayService) ForwardGemini(ctx context.Context, c *gin.Co
body: wrappedBody,
quotaScope: quotaScope,
httpUpstream: s.httpUpstream,
accountRepo: s.accountRepo,
handleError: s.handleUpstreamError,
})
if err != nil {