feature/upgrade_retry #5

Merged
zhangdeman merged 4 commits from feature/upgrade_retry into master 2025-04-17 18:43:43 +08:00
Showing only changes of commit 84cf228b5d - Show all commits

View File

@ -10,7 +10,6 @@ package httpclient
import ( import (
"fmt" "fmt"
"net" "net"
"net/http"
"strings" "strings"
"time" "time"
@ -47,7 +46,7 @@ func NewHttpClient(reqConfig *define.Request, cacheInstance cache.ICache) (*Http
} }
// 初始化成功的 http code list // 初始化成功的 http code list
if len(reqConfig.SuccessHttpCodeList) == 0 { if len(reqConfig.SuccessHttpCodeList) == 0 {
reqConfig.SuccessHttpCodeList = []int64{} reqConfig.SuccessHttpCodeList = []int{}
} }
if len(reqConfig.Static) > 0 { if len(reqConfig.Static) > 0 {
for loc, valMap := range reqConfig.Static { for loc, valMap := range reqConfig.Static {