diff --git a/internal/httpclient/client.go b/internal/httpclient/client.go index 8433d5009..ed0949c9c 100644 --- a/internal/httpclient/client.go +++ b/internal/httpclient/client.go @@ -97,9 +97,6 @@ type Config struct { // DisableCompression: see http.Transport{}.DisableCompression. DisableCompression bool - - // HTTPClient ... - HTTPClient *http.Client } // Client wraps an underlying http.Client{} to provide the following: @@ -123,11 +120,6 @@ func New(cfg Config) *Client { var c Client c.retries = 5 - if cfg.HTTPClient != nil { - // Copy over existing client. - c.client = *cfg.HTTPClient - } - d := &net.Dialer{ Timeout: 15 * time.Second, KeepAlive: 30 * time.Second,