on main help sign in
use new wg pattern
commitd3682ac4719bd5892ceb21c15c66009c1e0b9b54 authorTai Groot <tai@taigrr.com> dateThu 26 Feb 2026, 14:41 (8 months ago) parent0583221
1 file changed+2−4
internal/agent/tools/diagnostics.go+2−4
internal/agent/tools/diagnostics.go+2−4
@@ -81,11 +81,9 @@ func waitForLSPDiagnostics(
8181 if !client.HandlesFile(filepath) {
8282 continue
8383 }
84− wg.Add(1)
85− go func() {
86− defer wg.Done()
84+ wg.Go(func() {
8785 client.WaitForDiagnostics(waitCtx, timeout)
88− }()
86+ })
8987 }
9088 wg.Wait()
9189}