fix(delivery): 将第一平台发货出站超时调到 30 秒
常态提交约 11 秒,15 秒上限会在上游偶发变慢时提前断开,可能把仍在处理的订单记成失败。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -41,7 +41,7 @@ func NewDLCProvider(bffBaseURL, channel string, httpClient *http.Client) *DLCPro
|
||||
channel = "dlc"
|
||||
}
|
||||
if httpClient == nil {
|
||||
httpClient = &http.Client{Timeout: 15 * timeSecond(15)}
|
||||
httpClient = &http.Client{Timeout: deliveryUpstreamTimeout}
|
||||
}
|
||||
return &DLCProvider{
|
||||
bffBaseURL: bffBaseURL,
|
||||
@@ -633,6 +633,3 @@ func (p *DLCProvider) signProxy(path, method string, data interface{}, out inter
|
||||
return lastErr
|
||||
}
|
||||
|
||||
func timeSecond(s int) time.Duration {
|
||||
return time.Duration(s) * time.Second
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user