aboutsummaryrefslogtreecommitdiffstats
path: root/metrics/librato/client.go
diff options
context:
space:
mode:
authorkiel barry <kiel.j.barry@gmail.com>2018-05-03 17:43:59 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-05-03 17:43:59 +0800
commitcd9a1d5b37b41c45fd660bc36ced5427478fc0e0 (patch)
treedc01dc6d1f28441ae43af3b198afa261d7328b0d /metrics/librato/client.go
parent2ad511ce0912194e9f30010f01fc338c585f8634 (diff)
downloadgo-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar.gz
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar.bz2
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar.lz
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar.xz
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.tar.zst
go-tangerine-cd9a1d5b37b41c45fd660bc36ced5427478fc0e0.zip
metrics: golint updates for this or self warning (#16635)
* metrics/*: golint updates for this or self warning * metrics/*: golint updates for this or self warning, updated pr from feedback
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