Skip to content

Commit 0c10e86

Browse files
committed
remove WG.Add
1 parent 918a481 commit 0c10e86

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/internal_worker_base.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,7 @@ func (bw *baseWorker) Start() {
214214

215215
bw.shutdownWG.Add(1)
216216
go bw.runTaskDispatcher()
217-
218-
// We want the emit function run once per host instead of run once per worker
219-
// since the emit function is host level metric.
220-
bw.shutdownWG.Add(1)
221-
217+
222218
bw.isWorkerStarted = true
223219
traceLog(func() {
224220
bw.logger.Info("Started Worker",

0 commit comments

Comments
 (0)