Browse Source

调整 http client 的重试次数为1

Signed-off-by: allan716 <[email protected]>
allan716 3 years ago
parent
commit
ef429a67db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/my_util/util.go

+ 1 - 1
pkg/my_util/util.go

@@ -58,7 +58,7 @@ func NewHttpClient(_proxySettings ...*settings.ProxySettings) (*resty.Client, er
 		MaxIdleConnsPerHost: 1000,
 	})
 	httpClient.SetTimeout(common.HTMLTimeOut)
-	httpClient.SetRetryCount(2)
+	httpClient.SetRetryCount(1)
 	// ------------------------------------------------
 	// 设置 Referer
 	if len(_proxySettings) > 0 {