fix: gofmt
This commit is contained in:
@@ -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(
|
|||||||
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 (
|
|||||||
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*`)
|
||||||
|
|||||||
Reference in New Issue
Block a user