Commit 42e2c506 authored by song's avatar song
Browse files

fix: gofmt

parent 380c43cb
...@@ -19,8 +19,8 @@ type AntigravityTokenCache = GeminiTokenCache ...@@ -19,8 +19,8 @@ type AntigravityTokenCache = GeminiTokenCache
// AntigravityTokenProvider 管理 Antigravity 账户的 access_token // AntigravityTokenProvider 管理 Antigravity 账户的 access_token
type AntigravityTokenProvider struct { type AntigravityTokenProvider struct {
accountRepo AccountRepository accountRepo AccountRepository
tokenCache AntigravityTokenCache tokenCache AntigravityTokenCache
antigravityOAuthService *AntigravityOAuthService antigravityOAuthService *AntigravityOAuthService
} }
...@@ -30,8 +30,8 @@ func NewAntigravityTokenProvider( ...@@ -30,8 +30,8 @@ func NewAntigravityTokenProvider(
antigravityOAuthService *AntigravityOAuthService, antigravityOAuthService *AntigravityOAuthService,
) *AntigravityTokenProvider { ) *AntigravityTokenProvider {
return &AntigravityTokenProvider{ return &AntigravityTokenProvider{
accountRepo: accountRepo, accountRepo: accountRepo,
tokenCache: tokenCache, tokenCache: tokenCache,
antigravityOAuthService: antigravityOAuthService, antigravityOAuthService: antigravityOAuthService,
} }
} }
......
...@@ -31,7 +31,6 @@ const ( ...@@ -31,7 +31,6 @@ const (
stickySessionTTL = time.Hour // 粘性会话TTL stickySessionTTL = time.Hour // 粘性会话TTL
) )
// sseDataRe matches SSE data lines with optional whitespace after colon. // sseDataRe matches SSE data lines with optional whitespace after colon.
// Some upstream APIs return non-standard "data:" without space (should be "data: "). // Some upstream APIs return non-standard "data:" without space (should be "data: ").
var sseDataRe = regexp.MustCompile(`^data:\s*`) var sseDataRe = regexp.MustCompile(`^data:\s*`)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment