From e9a0619ede6a3cbe8f36663a91a9da31b8c6ea2f Mon Sep 17 00:00:00 2001 From: Manik Rana Date: Thu, 11 Jul 2024 15:13:33 +0530 Subject: [PATCH] chore: lint Signed-off-by: Manik Rana --- model/textparse/openmetricsparse.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/model/textparse/openmetricsparse.go b/model/textparse/openmetricsparse.go index ac4ed36fd9..8b83a1a61b 100644 --- a/model/textparse/openmetricsparse.go +++ b/model/textparse/openmetricsparse.go @@ -269,7 +269,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 { } // We got a CT line here, but let's search if CT line is actually for our series, edge case. - peekWithoutNameLsetHash, buf = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile") + peekWithoutNameLsetHash, _ = peekedLset.HashWithoutLabels(buf, labels.MetricName, "le", "quantile") if peekWithoutNameLsetHash != currWithoutNameLsetHash { // CT line for a different series, for our series no CT. return nil @@ -278,6 +278,7 @@ func (p *OpenMetricsParser) CreatedTimestamp() *int64 { return &ct } } + func typeRequiresCT(t model.MetricType) bool { switch t { case model.MetricTypeCounter, model.MetricTypeSummary, model.MetricTypeHistogram: