Skip to content

Commit

Permalink
Rename worker ID
Browse files Browse the repository at this point in the history
  • Loading branch information
jeschkies committed Dec 6, 2023
1 parent a232309 commit 1b13901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/querier/worker/scheduler_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (sp *schedulerProcessor) processQueriesOnSingleStream(workerCtx context.Con
}

// process loops processing requests on an established stream.
func (sp *schedulerProcessor) querierLoop(c schedulerpb.SchedulerForQuerier_QuerierLoopClient, address string, inflightQuery *atomic.Bool, workerId string) error {
func (sp *schedulerProcessor) querierLoop(c schedulerpb.SchedulerForQuerier_QuerierLoopClient, address string, inflightQuery *atomic.Bool, workerID string) error {
// Build a child context so we can cancel a query when the stream is closed.
ctx, cancel := context.WithCancel(c.Context())
defer cancel()
Expand All @@ -131,7 +131,7 @@ func (sp *schedulerProcessor) querierLoop(c schedulerpb.SchedulerForQuerier_Quer
return err
}

level.Debug(sp.log).Log("msg", "received query", "worker", workerId, "wait_time_sec", time.Since(start).Seconds())
level.Debug(sp.log).Log("msg", "received query", "worker", workerID, "wait_time_sec", time.Since(start).Seconds())

inflightQuery.Store(true)

Expand Down

0 comments on commit 1b13901

Please sign in to comment.