matcha
matcha copied to clipboard
BUG: Goroutine leak in IDLE watcher on early stop
Describe the bug IDLE watcher at fetcher/idle.go:45 closes stop channel but doesn't synchronize goroutine exit. Old watcher may continue running.
To reproduce
- Call Watch() repeatedly for same account
- Old goroutines closed but not reaped
- Goroutine leak, memory grows
Expected behavior Use WaitGroup or context to ensure goroutine exits
Matcha version master
OS All
Additional context File: fetcher/idle.go line 45 Resource leak, grows over time
This has had no activity for 30 days. It will be closed in 14 days unless updated. Comment or remove the stale label to keep it open.
Closing due to inactivity. Reopen if still relevant.