Skip to content

Commit

Permalink
Remove self-assignment of engineOpts.ActiveQueryTracker
Browse files Browse the repository at this point in the history
Signed-off-by: Oron Sharabi <oron.sh@coralogix.com>
  • Loading branch information
oronsh committed Aug 19, 2022
1 parent e50c15e commit 60a9300
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/thanos/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,6 @@ func runQuery(
// Otherwise, the nil active query tracker from existing engine options will be used.
if activeQueryDir != "" {
engineOpts.ActiveQueryTracker = promql.NewActiveQueryTracker(activeQueryDir, maxConcurrentQueries, logger)
} else {
engineOpts.ActiveQueryTracker = engineOpts.ActiveQueryTracker
}
engine := promql.NewEngine(engineOpts)
lookbackDeltaCreator := LookbackDeltaFactory(engineOpts, dynamicLookbackDelta)
Expand Down

0 comments on commit 60a9300

Please sign in to comment.