- ebai api
This commit is contained in:
@@ -6,16 +6,16 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/fatih/structs"
|
||||
|
||||
"git.rosy.net.cn/baseapi"
|
||||
"github.com/fatih/structs"
|
||||
)
|
||||
|
||||
const (
|
||||
DefClientTimeout = 10 * time.Second
|
||||
DefSleepSecondWhenExceedLimit = 6 * time.Second
|
||||
DefRandSlice = 10
|
||||
DefMaxRecoverableRetryCount = 3
|
||||
DefMaxExceedLimitRetryCount = 10
|
||||
DefMaxExceedLimitRetryCount = 12
|
||||
)
|
||||
|
||||
type APIRetryConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user