mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 10:26:21 +00:00
ref(global) move modules, extract constants
This commit is contained in:
10 files changed
+216
-152
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user