style: rustfmt config.rs and main.rs from the last two features

This commit is contained in:
2026-08-13 22:43:35 +08:00
parent 6b9640aa48
commit 39260a8817
2 changed files with 11 additions and 10 deletions
+4 -1
View File
@@ -191,7 +191,10 @@ async fn main() {
}
TASK_QUEUE.stop().await;
};
if tokio::time::timeout(SHUTDOWN_TIMEOUT, shutdown).await.is_err() {
if tokio::time::timeout(SHUTDOWN_TIMEOUT, shutdown)
.await
.is_err()
{
log::warn!("graceful shutdown timed out after {SHUTDOWN_TIMEOUT:?}; exiting");
} else {
log::info!("Bot stopped");