mirror of
https://github.com/oneclickvirt/backtrace.git
synced 2026-11-24 23:39:41 +08:00
fix: 减少重试次数
This commit is contained in:
1 parent
4c859e663e
commit
476aac782d
1 file changed
+2
-2
+2
-2
@@ -50,8 +50,8 @@ type retryConfig struct {
|
||||
|
||||
// 默认重试配置:3次重试,超时时间分别为3s、4s、5s
|
||||
var defaultRetryConfig = retryConfig{
|
||||
maxRetries: 3,
|
||||
timeouts: []time.Duration{3 * time.Second, 4 * time.Second, 5 * time.Second},
|
||||
maxRetries: 2,
|
||||
timeouts: []time.Duration{5 * time.Second, 6 * time.Second},
|
||||
}
|
||||
|
||||
// executeWithRetry 执行带重试的HTTP请求
|
||||
|
||||
Reference in new issue
Block a user