Skip to content

Commit

Permalink
Client doesn't have to be a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ash2k committed Jul 30, 2016
1 parent 17f1b89 commit 3494487
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/backends/datadog/datadog.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3494487

Please sign in to comment.