From a3a1a5858322d99af077cdcf572fc9dfc359e19d Mon Sep 17 00:00:00 2001 From: Zach Stone Date: Mon, 28 Mar 2022 16:29:25 +0200 Subject: [PATCH] Skip curry value to demo Signed-off-by: Zach Stone --- prometheus/vec.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/prometheus/vec.go b/prometheus/vec.go index 40b9ccdd1..6ac722ca9 100644 --- a/prometheus/vec.go +++ b/prometheus/vec.go @@ -453,14 +453,14 @@ func matchPartialLabels(desc *Desc, values []string, labels Labels, curry []curr varLabelIndex, validLabel := indexOf(l, desc.variableLabels) if validLabel { // Check the value of that label against the target value. - if valueOrCurriedValue(varLabelIndex, values, curry) == v { - continue - } - - // if values[varLabelIndex] == v { + // if valueOrCurriedValue(varLabelIndex, values, curry) == v { // continue - // } + + if values[varLabelIndex] == v { + continue + + } } return false }