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
8fbe1ad7
"frontend/src/components/vscode:/vscode.git/clone" did not exist on "a20c211162278e41e5a1b8f37c0bedc186bde986"
Commit
8fbe1ad7
authored
Dec 25, 2025
by
shaw
Browse files
chore: 调整403重试次数跟间隔
parent
25a304c2
Changes
1
Show whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_service.go
View file @
8fbe1ad7
...
@@ -362,8 +362,8 @@ func (s *GatewayService) getOAuthToken(ctx context.Context, account *model.Accou
...
@@ -362,8 +362,8 @@ func (s *GatewayService) getOAuthToken(ctx context.Context, account *model.Accou
// 重试相关常量
// 重试相关常量
const
(
const
(
maxRetries
=
3
// 最大重试次数
maxRetries
=
5
// 最大重试次数
retryDelay
=
2
*
time
.
Second
// 重试等待时间
retryDelay
=
6
*
time
.
Second
// 重试等待时间
)
)
// shouldRetryUpstreamError 判断是否应该重试上游错误
// shouldRetryUpstreamError 判断是否应该重试上游错误
...
...
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