-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rebuild): don't clone receiver channel
When creating a rebuild job we were reusing the same comms type which is used to do bi-dir communication between the rebuild frontend and backend. In some situations this could lead into blocking stats because the receiver channel was kept alive by the frontend even after the frontend terminates. Force closing the channel should in theory help but it seems the queue is not drained on close. See: smol-rs/async-channel#23 Instead, let's split the channels into two types meaning only the backend has the receiver side. Signed-off-by: Tiago Castro <tiagolobocastro@gmail.com>
- Loading branch information
1 parent
aea67e1
commit 4063f73
Showing
2 changed files
with
37 additions
and
19 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