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
34aa77e4
Commit
34aa77e4
authored
Jan 05, 2026
by
IanShaw027
Browse files
fix(backend): 删除未使用的 sleepAntigravityBackoff 函数
修复 golangci-lint unused 检查失败
parent
ef11abcb
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/antigravity_gateway_service.go
View file @
34aa77e4
...
@@ -1087,10 +1087,6 @@ func (s *AntigravityGatewayService) shouldFailoverUpstreamError(statusCode int)
...
@@ -1087,10 +1087,6 @@ func (s *AntigravityGatewayService) shouldFailoverUpstreamError(statusCode int)
}
}
}
}
func
sleepAntigravityBackoff
(
attempt
int
)
{
sleepGeminiBackoff
(
attempt
)
// 复用 Gemini 的退避逻辑
}
// sleepAntigravityBackoffWithContext 带 context 取消检查的退避等待
// sleepAntigravityBackoffWithContext 带 context 取消检查的退避等待
// 返回 true 表示正常完成等待,false 表示 context 已取消
// 返回 true 表示正常完成等待,false 表示 context 已取消
func
sleepAntigravityBackoffWithContext
(
ctx
context
.
Context
,
attempt
int
)
bool
{
func
sleepAntigravityBackoffWithContext
(
ctx
context
.
Context
,
attempt
int
)
bool
{
...
...
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