增加重试配置初始化 + 重试逻辑处理
This commit is contained in:
@ -36,7 +36,7 @@ type Request struct {
|
||||
//
|
||||
// Date : 12:26 2024/5/31
|
||||
type RequestRetryRule struct {
|
||||
RetryCount int64 `json:"retry_count"` // 重试次数
|
||||
RetryCount int `json:"retry_count"` // 重试次数
|
||||
RetryTimeInterval int64 `json:"retry_time_interval"` // 重试的时间间隔 1 - 10 之间, 单位毫秒
|
||||
RetryHttpCodeList []int64 `json:"retry_http_code_list"` // 哪些http状态码需要重试
|
||||
RetryBusinessCodeList []string `json:"retry_business_code_list"` // 哪些业务状态码需要重试
|
||||
|
Reference in New Issue
Block a user