增加重试配置初始化 + 重试逻辑处理

This commit is contained in:
2024-05-31 18:51:31 +08:00
parent 0ba0f7dced
commit 196e81191a
4 changed files with 44 additions and 3 deletions

View File

@ -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"` // 哪些业务状态码需要重试