aboutsummaryrefslogtreecommitdiffstats
path: root/metrics/librato/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'metrics/librato/client.go')
-rw-r--r--metrics/librato/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/metrics/librato/client.go b/metrics/librato/client.go
index 8c0c850e3..1f8920cb1 100644
--- a/metrics/librato/client.go
+++ b/metrics/librato/client.go
@@ -65,7 +65,7 @@ type Batch struct {
Source string `json:"source"`
}
-func (self *LibratoClient) PostMetrics(batch Batch) (err error) {
+func (c *LibratoClient) PostMetrics(batch Batch) (err error) {
var (
js []byte
req *http.Request
@@ -85,7 +85,7 @@ func (self *LibratoClient) PostMetrics(batch Batch) (err error) {
}
req.Header.Set("Content-Type", "application/json")
- req.SetBasicAuth(self.Email, self.Token)
+ req.SetBasicAuth(c.Email, c.Token)
if resp, err = http.DefaultClient.Do(req); err != nil {
return