We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dadfef8 commit 00d3922Copy full SHA for 00d3922
prometheus/vec.go
@@ -201,13 +201,13 @@ func (m *MetricVec) Delete(labels Labels) bool {
201
// that metric.
202
//
203
// lvs MUST be of type Labels or []string or this method will panic.
204
-func (m *MetricVec) deleteByHash(h uint64, values interface{}) bool {
+func (m *MetricVec) deleteByHash(h uint64, lvs interface{}) bool {
205
metrics, ok := m.children[h]
206
if !ok {
207
return false
208
}
209
210
- i := m.findMetric(metrics, values)
+ i := m.findMetric(metrics, lvs)
211
if i >= len(metrics) {
212
213
0 commit comments