Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
42e2c506
Commit
42e2c506
authored
Dec 29, 2025
by
song
Browse files
fix: gofmt
parent
380c43cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/antigravity_token_provider.go
View file @
42e2c506
...
...
@@ -19,8 +19,8 @@ type AntigravityTokenCache = GeminiTokenCache
// AntigravityTokenProvider 管理 Antigravity 账户的 access_token
type
AntigravityTokenProvider
struct
{
accountRepo
AccountRepository
tokenCache
AntigravityTokenCache
accountRepo
AccountRepository
tokenCache
AntigravityTokenCache
antigravityOAuthService
*
AntigravityOAuthService
}
...
...
@@ -30,8 +30,8 @@ func NewAntigravityTokenProvider(
antigravityOAuthService
*
AntigravityOAuthService
,
)
*
AntigravityTokenProvider
{
return
&
AntigravityTokenProvider
{
accountRepo
:
accountRepo
,
tokenCache
:
tokenCache
,
accountRepo
:
accountRepo
,
tokenCache
:
tokenCache
,
antigravityOAuthService
:
antigravityOAuthService
,
}
}
...
...
backend/internal/service/gateway_service.go
View file @
42e2c506
...
...
@@ -31,7 +31,6 @@ const (
stickySessionTTL
=
time
.
Hour
// 粘性会话TTL
)
// sseDataRe matches SSE data lines with optional whitespace after colon.
// Some upstream APIs return non-standard "data:" without space (should be "data: ").
var
sseDataRe
=
regexp
.
MustCompile
(
`^data:\s*`
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment