use std::sync::mpsc; use tracing::{Level, event}; #[allow(clippy::unused_async)] pub async fn shutdown(tx: mpsc::Sender) { event!(Level::INFO, "Shutdown request received, stopping server..."); tx.send(true).expect("failed to send shutdown signal"); }