Skip to content

Commit

Permalink
Call shutdown on the JoinSet in broker
Browse files Browse the repository at this point in the history
This tries to ensure the other tasks are all destroyed by the time we
try to join the connection tasks.
  • Loading branch information
bobbobbio committed Jan 1, 2025
1 parent 6d4c29a commit ef8658b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/maelstrom-broker/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ where

join_set.join_next().await;

join_set.shutdown().await;
drop(join_set);

let github_connection_tasks = Arc::into_inner(github_connection_tasks)
.unwrap()
.into_inner()
Expand Down

0 comments on commit ef8658b

Please sign in to comment.