-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Add WaitGroup for process() goroutine completion
We need to ensure that the User.process() goroutine has finished executing before we serialize the queue to disk. It is currently possible that the goroutine is able to pop operations during the queue's closure. This in turn can result in a race condition when accessing the connection metadata.
- Loading branch information
1 parent
bf2f1c3
commit b11b5e4
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters