diff --git a/app/vmselect/promql/exec.go b/app/vmselect/promql/exec.go index 437fc003f4..6b55b5e594 100644 --- a/app/vmselect/promql/exec.go +++ b/app/vmselect/promql/exec.go @@ -43,9 +43,7 @@ func Exec(ec *EvalConfig, q string, isFirstPointOnly bool) ([]netstorage.Result, if querystats.Enabled() { startTime := time.Now() ac := ec.AuthToken - defer func() { - querystats.RegisterQuery(ac.AccountID, ac.ProjectID, q, ec.End-ec.Start, startTime) - }() + defer querystats.RegisterQuery(ac.AccountID, ac.ProjectID, q, ec.End-ec.Start, startTime) } ec.validate()