Fix comment

Signed-off-by: royeo <ljn6176@gmail.com>
This commit is contained in:
royeo 2021-05-06 16:07:17 +08:00
parent ea25c7a114
commit 393b4ca495

View file

@ -362,7 +362,7 @@ func (r *Registry) RemoveStaleMetrics() {
} }
} }
// Calculates a hash of both the label names and the label names and values. // Calculates a hash of both the label names and values.
func (r *Registry) HashLabels(labels prometheus.Labels) (metrics.LabelHash, []string) { func (r *Registry) HashLabels(labels prometheus.Labels) (metrics.LabelHash, []string) {
r.Hasher.Reset() r.Hasher.Reset()
r.NameBuf.Reset() r.NameBuf.Reset()