From 3494487ca0d10d1c6d6740a1c494732dd0806e2c Mon Sep 17 00:00:00 2001 From: Mikhail Mazurskiy Date: Sat, 30 Jul 2016 11:48:44 +1000 Subject: [PATCH] Client doesn't have to be a pointer --- backend/backends/datadog/datadog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/backends/datadog/datadog.go b/backend/backends/datadog/datadog.go index 7b75fe03..d298f6e5 100644 --- a/backend/backends/datadog/datadog.go +++ b/backend/backends/datadog/datadog.go @@ -39,7 +39,7 @@ type client struct { apiKey string apiEndpoint string maxRequestElapsedTime time.Duration - client *http.Client + client http.Client metricsPerBatch uint now func() time.Time // Returns current time. Useful for testing. } @@ -266,7 +266,7 @@ func NewClient(apiEndpoint, apiKey string, metricsPerBatch uint, clientTimeout, apiKey: apiKey, apiEndpoint: apiEndpoint, maxRequestElapsedTime: maxRequestElapsedTime, - client: &http.Client{ + client: http.Client{ Timeout: clientTimeout, }, metricsPerBatch: metricsPerBatch,