Skip to content

Commit

Permalink
remove WG.Add
Browse files Browse the repository at this point in the history
  • Loading branch information
3vilhamster committed Nov 12, 2024
1 parent 918a481 commit 0c10e86
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/internal_worker_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,7 @@ func (bw *baseWorker) Start() {

bw.shutdownWG.Add(1)
go bw.runTaskDispatcher()

// We want the emit function run once per host instead of run once per worker
// since the emit function is host level metric.
bw.shutdownWG.Add(1)


bw.isWorkerStarted = true
traceLog(func() {
bw.logger.Info("Started Worker",
Expand Down

0 comments on commit 0c10e86

Please sign in to comment.