mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix(coderd/x/chatd): inflight wait group data race (#24007)
Addresses https://github.com/coder/internal/issues/1450
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user