Skip to content

Commit

Permalink
Merge pull request #6 from Nick-Adams-AU/master
Browse files Browse the repository at this point in the history
Don't re-use API submission connections
  • Loading branch information
jcoene committed Oct 7, 2014
2 parents 30f93bc + 2c156f3 commit ff982bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ func submit() (err error) {
log.Debug("sending payload:\n%s", payload)

req, err := http.NewRequest("POST", "https://metrics-api.librato.com/v1/metrics", bytes.NewBuffer(payload))

req.Close = true

if err != nil {
return
}
Expand Down

0 comments on commit ff982bb

Please sign in to comment.