diff --git a/NEXT_CHANGELOG.md b/NEXT_CHANGELOG.md index 10a8c5ba2..9c044f107 100644 --- a/NEXT_CHANGELOG.md +++ b/NEXT_CHANGELOG.md @@ -5,6 +5,7 @@ ### New Features and Improvements ### Bug Fixes +- Set default HTTPTimeout to 60s to match documented one. ### Documentation diff --git a/httpclient/api_client.go b/httpclient/api_client.go index d54fd3fb3..038271096 100644 --- a/httpclient/api_client.go +++ b/httpclient/api_client.go @@ -106,7 +106,6 @@ func (cfg ClientConfig) httpTransport() http.RoundTripper { func NewApiClient(cfg ClientConfig) *ApiClient { // Set defaults for config values that are not set. - cfg.HTTPTimeout = time.Duration(orDefault(int(cfg.HTTPTimeout), int(30*time.Second))) cfg.DebugTruncateBytes = orDefault(cfg.DebugTruncateBytes, 96) cfg.RetryTimeout = time.Duration(orDefault(int(cfg.RetryTimeout), int(5*time.Minute))) cfg.HTTPTimeout = time.Duration(orDefault(int(cfg.HTTPTimeout), int(60*time.Second)))