From a30333a79ed0e4d4e5dd30e3f4350eea94c386f1 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Thu, 9 Jun 2022 13:21:48 +0300 Subject: [PATCH] app/vmselect/graphite: remove additional redundant Request.ParseForm() calls after 38c785b8512393abe7314a0cbfae19a2e88d58bc --- app/vmselect/graphite/tags_api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/vmselect/graphite/tags_api.go b/app/vmselect/graphite/tags_api.go index 43b3c51cd..f39e19b1a 100644 --- a/app/vmselect/graphite/tags_api.go +++ b/app/vmselect/graphite/tags_api.go @@ -83,9 +83,8 @@ func TagsTagMultiSeriesHandler(startTime time.Time, w http.ResponseWriter, r *ht } func registerMetrics(startTime time.Time, w http.ResponseWriter, r *http.Request, isJSONResponse bool) error { - if err := r.ParseForm(); err != nil { - return fmt.Errorf("cannot parse form values: %w", err) - } + deadline := searchutils.GetDeadlineForQuery(r, startTime) + _ = deadline // TODO: use the deadline as in the cluster branch paths := r.Form["path"] var row graphiteparser.Row var labels []prompb.Label