app/vmselect/graphite: remove additional redundant Request.ParseForm() calls after 38c785b851

This commit is contained in:
Aliaksandr Valialkin 2022-06-09 13:21:48 +03:00
parent 38c785b851
commit a30333a79e
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -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