fix: 删除 AntigravityQuotaRefresher 未使用的 oauthSvc 字段

This commit is contained in:
song
2025-12-29 17:57:14 +08:00
parent 026740b5e5
commit 9774339fef

View File

@@ -14,7 +14,6 @@ import (
type AntigravityQuotaRefresher struct { type AntigravityQuotaRefresher struct {
accountRepo AccountRepository accountRepo AccountRepository
proxyRepo ProxyRepository proxyRepo ProxyRepository
oauthSvc *AntigravityOAuthService
cfg *config.TokenRefreshConfig cfg *config.TokenRefreshConfig
stopCh chan struct{} stopCh chan struct{}
@@ -25,13 +24,12 @@ type AntigravityQuotaRefresher struct {
func NewAntigravityQuotaRefresher( func NewAntigravityQuotaRefresher(
accountRepo AccountRepository, accountRepo AccountRepository,
proxyRepo ProxyRepository, proxyRepo ProxyRepository,
oauthSvc *AntigravityOAuthService, _ *AntigravityOAuthService,
cfg *config.Config, cfg *config.Config,
) *AntigravityQuotaRefresher { ) *AntigravityQuotaRefresher {
return &AntigravityQuotaRefresher{ return &AntigravityQuotaRefresher{
accountRepo: accountRepo, accountRepo: accountRepo,
proxyRepo: proxyRepo, proxyRepo: proxyRepo,
oauthSvc: oauthSvc,
cfg: &cfg.TokenRefresh, cfg: &cfg.TokenRefresh,
stopCh: make(chan struct{}), stopCh: make(chan struct{}),
} }