From 0caaa962066662c0ec4dbac3734da1855c9215c6 Mon Sep 17 00:00:00 2001 From: Manik Rana Date: Tue, 27 Aug 2024 21:06:40 +0530 Subject: [PATCH] chore: use textparse interface to set om options Signed-off-by: Manik Rana --- promql/fuzz.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/promql/fuzz.go b/promql/fuzz.go index 5f08e6a72c..57fd1166ac 100644 --- a/promql/fuzz.go +++ b/promql/fuzz.go @@ -61,17 +61,13 @@ const ( var symbolTable = labels.NewSymbolTable() func fuzzParseMetricWithContentType(in []byte, contentType string) int { - p, warning := textparse.New(in, contentType, false, symbolTable) + p, warning := textparse.New(in, contentType, false, false, symbolTable) if warning != nil { // An invalid content type is being passed, which should not happen // in this context. panic(warning) } - if contentType == "application/openmetrics-text" { - p = textparse.NewOpenMetricsParser(in, symbolTable) - } - var err error for { _, err = p.Next()