From 34aa77e4e1a4d3fbafd01c5df9bd34ec6fcabcb0 Mon Sep 17 00:00:00 2001 From: IanShaw027 <131567472+IanShaw027@users.noreply.github.com> Date: Mon, 5 Jan 2026 20:15:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(backend):=20=E5=88=A0=E9=99=A4=E6=9C=AA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=20sleepAntigravityBackoff=20?= =?UTF-8?q?=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 golangci-lint unused 检查失败 --- backend/internal/service/antigravity_gateway_service.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/internal/service/antigravity_gateway_service.go b/backend/internal/service/antigravity_gateway_service.go index 35aa3937..83781a6a 100644 --- a/backend/internal/service/antigravity_gateway_service.go +++ b/backend/internal/service/antigravity_gateway_service.go @@ -1087,10 +1087,6 @@ func (s *AntigravityGatewayService) shouldFailoverUpstreamError(statusCode int) } } -func sleepAntigravityBackoff(attempt int) { - sleepGeminiBackoff(attempt) // 复用 Gemini 的退避逻辑 -} - // sleepAntigravityBackoffWithContext 带 context 取消检查的退避等待 // 返回 true 表示正常完成等待,false 表示 context 已取消 func sleepAntigravityBackoffWithContext(ctx context.Context, attempt int) bool {