From 71ebfdd276c5e71f38201e69988ebf5f43526858 Mon Sep 17 00:00:00 2001 From: qpismont Date: Wed, 10 Jun 2026 18:26:55 +0000 Subject: [PATCH] tasks.join_next => join_all() --- src/bot.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/bot.rs b/src/bot.rs index 56cd999..c237c17 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -80,11 +80,7 @@ impl Bot { // When all webhook tasks have completed, we can safely exit // properly before returning - while let Some(res) = tasks.join_next().await { - if let Err(e) = res { - error!("Task panicked: {e}"); - } - } + tasks.join_all().await; info!("Bot shutting down, channel closed"); Ok(())