From ef8658b51f6f455ba72b7d34c7c7ad65ce2ea214 Mon Sep 17 00:00:00 2001 From: Remi Bernotavicius Date: Tue, 31 Dec 2024 22:55:19 -0800 Subject: [PATCH] Call shutdown on the JoinSet in broker This tries to ensure the other tasks are all destroyed by the time we try to join the connection tasks. --- crates/maelstrom-broker/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/maelstrom-broker/src/lib.rs b/crates/maelstrom-broker/src/lib.rs index f10efe70..6434b685 100644 --- a/crates/maelstrom-broker/src/lib.rs +++ b/crates/maelstrom-broker/src/lib.rs @@ -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()