Naming nit
This commit is contained in:
parent
dadfef856f
commit
00d39222c2
|
@ -201,13 +201,13 @@ func (m *MetricVec) Delete(labels Labels) bool {
|
||||||
// that metric.
|
// that metric.
|
||||||
//
|
//
|
||||||
// lvs MUST be of type Labels or []string or this method will panic.
|
// lvs MUST be of type Labels or []string or this method will panic.
|
||||||
func (m *MetricVec) deleteByHash(h uint64, values interface{}) bool {
|
func (m *MetricVec) deleteByHash(h uint64, lvs interface{}) bool {
|
||||||
metrics, ok := m.children[h]
|
metrics, ok := m.children[h]
|
||||||
if !ok {
|
if !ok {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
i := m.findMetric(metrics, values)
|
i := m.findMetric(metrics, lvs)
|
||||||
if i >= len(metrics) {
|
if i >= len(metrics) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue