fix(coderd/x/chatd): inflight wait group data race (#24007)

Addresses https://github.com/coder/internal/issues/1450
This commit is contained in:
Hugo Dutka
2026-04-03 20:04:09 +02:00
committed by GitHub
parent 2a1bef18e0
commit ec83065b59
4 changed files with 25 additions and 9 deletions
+1 -1
View File
@@ -5,5 +5,5 @@ package chatd
// database state only after asynchronous chat processing has completed.
// Close waits for the same tracked work, but also stops the server.
func WaitUntilIdleForTest(server *Server) {
server.inflight.Wait()
server.drainInflight()
}