diff --git a/cmd/thanos/query.go b/cmd/thanos/query.go index 9663bbf7b13..3c8bf4c85c1 100644 --- a/cmd/thanos/query.go +++ b/cmd/thanos/query.go @@ -765,7 +765,7 @@ func engineFactory( } var queryTracker *promql.ActiveQueryTracker - newEngingOpts := promql.EngineOpts{ + newEngineOpts := promql.EngineOpts{ Logger: eo.Logger, Reg: wrapReg(i), MaxSamples: eo.MaxSamples, @@ -778,12 +778,12 @@ func engineFactory( if activeQueryDir != "" { resActiveQueryDir := filepath.Join(activeQueryDir, getActiveQueryDirBasedOnResolution(r)) queryTracker = promql.NewActiveQueryTracker(resActiveQueryDir, maxConcurrentQueries, logger) - newEngingOpts.ActiveQueryTracker = queryTracker + newEngineOpts.ActiveQueryTracker = queryTracker } else { - newEngingOpts.ActiveQueryTracker = eo.ActiveQueryTracker + newEngineOpts.ActiveQueryTracker = eo.ActiveQueryTracker } - engines[i] = newEngine(newEngingOpts) + engines[i] = newEngine(newEngineOpts) } return func(maxSourceResolutionMillis int64) *promql.Engine { for i := len(resolutions) - 1; i >= 1; i-- {