-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: deadlock when waiting on inflight events of a trigger (#1073)
This PR fixes an issue where `WaitGroup.Wait` caused a deadlock with the progressing update events because waiting in the event loop starves it forever. Additionally, I removed the field `done`, which caused a race with a concurrent event from the WS providers. It also wasn't useful at all. I battle-tested the change with a load test scenario where connections are reestablished multiple times a second.
- Loading branch information
Showing
3 changed files
with
55 additions
and
57 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
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