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
b3463769
"frontend/src/git@web.lueluesay.top:chenxi/sub2api.git" did not exist on "838ada8864a82143b7ddeb483bbbaa8acd89ee5a"
Commit
b3463769
authored
Dec 26, 2025
by
shaw
Browse files
chore: 调整403重试次数跟间隔
parent
d9e6cfc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/internal/service/gateway_service.go
View file @
b3463769
...
...
@@ -368,8 +368,8 @@ func (s *GatewayService) getOAuthToken(ctx context.Context, account *model.Accou
// 重试相关常量
const
(
maxRetries
=
5
// 最大重试次数
retryDelay
=
6
*
time
.
Second
// 重试等待时间
maxRetries
=
10
// 最大重试次数
retryDelay
=
3
*
time
.
Second
// 重试等待时间
)
// 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