request.WithTimeout log
This commit is contained in:
parent
664dfa5159
commit
83295e7443
|
|
@ -83,7 +83,7 @@ func Request(_ context.Context, method, url string, body []byte, o *Options) (ht
|
||||||
|
|
||||||
resp, err := httpClient.Do(req)
|
resp, err := httpClient.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, fmt.Errorf("发送HTTP请求失败: %w", err)
|
return nil, nil, fmt.Errorf("发送请求失败,timeout:%v,err:%w", o.Timeout, err)
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue