Why is this an issue?
In internal/workers/lifecycle_worker.go:41-45, the startup goroutine does not call wg.Done(), causing a goroutine leak.
What is causing it?
wg.Add(1)
go func() {
defer wg.Done() // MISSING
w.processRules(ctx)
}()
How can it be solved?
Add defer wg.Done() inside the goroutine.
Category
Severity
Why is this an issue?
In
internal/workers/lifecycle_worker.go:41-45, the startup goroutine does not callwg.Done(), causing a goroutine leak.What is causing it?
How can it be solved?
Add
defer wg.Done()inside the goroutine.Category
Severity