ref(global) move modules, extract constants

This commit is contained in:
lumither committed 2024-11-20 00:57:54 -08:00
1 parent c7e3b12856
commit e26003f430
10 files changed
+216 -152

No files matched your search

+3 -12
View File
@@ -1,21 +1,12 @@
use macros::panic_with_log;
use tracing::Level;
mod blog;
mod init;
mod logger;
mod scheduler;
mod server;
#[tokio::main]
async fn main() {
init::load_env();
let _guards = init::logger_init();
match server::start().await {
Ok(_) => {}
Err(e) => {
panic_with_log!(Level::ERROR, "failed to start server: {}", e);
}
};
let _guards = init::logger::init();
init::start().await;
}