mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/promscrape: make errcheck happy
This commit is contained in:
parent
2dfb42a8b4
commit
c09c881264
1 changed files with 2 additions and 2 deletions
|
@ -278,8 +278,8 @@ func getLabelsHash(lh *xxhash.Digest, labels []prompbmarshal.Label) uint64 {
|
|||
// since the accuracy for `scrape_series_added` metric may be lower than 100%.
|
||||
lh.Reset()
|
||||
for _, label := range labels {
|
||||
lh.WriteString(label.Name)
|
||||
lh.WriteString(label.Value)
|
||||
_, _ = lh.WriteString(label.Name)
|
||||
_, _ = lh.WriteString(label.Value)
|
||||
}
|
||||
return lh.Sum64()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue