fix: add correct worker count before startHTTPLogger() (#17091)

This commit is contained in:
jiuker
2023-04-28 01:51:16 +08:00
committed by GitHub
parent c8b92f6067
commit b28d391a22

View File

@@ -204,6 +204,7 @@ func (h *Target) Init() (err error) {
h.workerStartMu.Lock()
h.lastStarted = time.Now()
h.workerStartMu.Unlock()
atomic.AddInt64(&h.workers, 1)
go h.startHTTPLogger()
}
return nil