Skip to content

Commit

Permalink
fix(consensus): replace notify_waiters with notify_one in edge node
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-wright committed Feb 16, 2024
1 parent bdeb34b commit 68e55f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/consensus/src/edge_node/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl EdgeConsensus {
/// Consume this executor and shutdown all of the workers and processes.
pub async fn shutdown(self) {
// Send the shutdown signal.
self.tx_shutdown.notify_waiters();
self.tx_shutdown.notify_one();

// Gracefully wait for all the subtasks to finish and return.
self.handle.await.unwrap();
Expand Down

0 comments on commit 68e55f8

Please sign in to comment.