Skip to content

Commit

Permalink
Fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
  • Loading branch information
kakkoyun committed Oct 29, 2020
1 parent 37f2e33 commit 8aa3585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/receive/hashring.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (s simpleHashring) GetN(tenant string, ts *prompb.TimeSeries, n uint64) (st
func (s simpleHashring) ConfigHash() string {
h := sha256.New()
for _, v := range s {
h.Write([]byte(v))
_, _ = h.Write([]byte(v))
}
return string(h.Sum(nil))
}
Expand Down Expand Up @@ -157,7 +157,7 @@ func (m *multiHashring) GetN(tenant string, ts *prompb.TimeSeries, n uint64) (st
func (m *multiHashring) ConfigHash() string {
h := sha256.New()
for _, v := range m.hashrings {
h.Write([]byte(v.ConfigHash()))
_, _ = h.Write([]byte(v.ConfigHash()))
}
return string(h.Sum(nil))
}
Expand Down

0 comments on commit 8aa3585

Please sign in to comment.