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
4a7e2a44
Commit
4a7e2a44
authored
Jan 01, 2026
by
IanShaw027
Browse files
fix(lint): 修复 golangci-lint 问题(gofmt + staticcheck)
parent
83688c92
Changes
2
Show whitespace changes
Inline
Side-by-side
backend/internal/service/account_usage_service.go
View file @
4a7e2a44
backend/internal/service/gemini_messages_compat_service.go
View file @
4a7e2a44
...
@@ -1924,7 +1924,7 @@ func (s *GeminiMessagesCompatService) handleGeminiUpstreamError(ctx context.Cont
...
@@ -1924,7 +1924,7 @@ func (s *GeminiMessagesCompatService) handleGeminiUpstreamError(ctx context.Cont
cooldown
=
s
.
rateLimitService
.
GeminiCooldown
(
ctx
,
account
)
cooldown
=
s
.
rateLimitService
.
GeminiCooldown
(
ctx
,
account
)
}
}
ra
=
time
.
Now
()
.
Add
(
cooldown
)
ra
=
time
.
Now
()
.
Add
(
cooldown
)
log
.
Printf
(
"[Gemini 429] Account %d (Code Assist, tier=%s, project=%s) rate limited, cooldown=%v"
,
account
.
ID
,
tierID
,
projectID
,
ra
.
Sub
(
time
.
Now
()
)
.
Truncate
(
time
.
Second
))
log
.
Printf
(
"[Gemini 429] Account %d (Code Assist, tier=%s, project=%s) rate limited, cooldown=%v"
,
account
.
ID
,
tierID
,
projectID
,
time
.
Until
(
ra
)
.
Truncate
(
time
.
Second
))
}
else
{
}
else
{
// API Key / AI Studio OAuth: PST 午夜
// API Key / AI Studio OAuth: PST 午夜
if
ts
:=
nextGeminiDailyResetUnix
();
ts
!=
nil
{
if
ts
:=
nextGeminiDailyResetUnix
();
ts
!=
nil
{
...
...
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