mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
Bump common HTTP client timeout to 15 seconds
This commit is contained in:
@@ -57,9 +57,9 @@ const (
|
||||
)
|
||||
|
||||
func initialiseHTTPClient() {
|
||||
// If the HTTPClient isn't set, start a new client with a default timeout of 5 seconds
|
||||
// If the HTTPClient isn't set, start a new client with a default timeout of 15 seconds
|
||||
if HTTPClient == nil {
|
||||
HTTPClient = NewHTTPClientWithTimeout(time.Duration(time.Second * 5))
|
||||
HTTPClient = NewHTTPClientWithTimeout(time.Duration(time.Second * 15))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user