remove separate ui service, serve ui with backend
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 9s
This commit is contained in:
8
src/routes/shutdown.rs
Normal file
8
src/routes/shutdown.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use std::sync::mpsc;
|
||||
use tracing::{Level, event};
|
||||
|
||||
#[allow(clippy::unused_async)]
|
||||
pub async fn shutdown(tx: mpsc::Sender<bool>) {
|
||||
event!(Level::INFO, "Shutdown request received, stopping server...");
|
||||
tx.send(true).expect("failed to send shutdown signal");
|
||||
}
|
||||
Reference in New Issue
Block a user