Skip to content

Commit ade8313

Browse files
committed
Remove unnecessary file creation in graceful shutdown
1 parent f1e9a5a commit ade8313

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
use std::{fs::File, io::Write};
2-
31
use axum::serve;
42
use controllers::app::app;
53
use env::state::AppState;
@@ -67,7 +65,5 @@ async fn handle_shutdown() {
6765
_ = terminate => {},
6866
}
6967

70-
// Create file
71-
let mut file = File::create("shutdown.txt").unwrap();
72-
file.write_all(b"Shutdown signal received").unwrap();
68+
info!("Shutting down...");
7369
}

0 commit comments

Comments
 (0)