mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Add gracefull shutdown
This commit is contained in:
@@ -98,7 +98,7 @@ impl BotsManager {
|
||||
}
|
||||
|
||||
pub async fn start(running: Arc<AtomicBool>) {
|
||||
start_axum_server().await;
|
||||
start_axum_server(running.clone()).await;
|
||||
|
||||
let mut interval = time::interval(Duration::from_secs(5));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user