diff options
Diffstat (limited to 'server/src/main.rs')
-rw-r--r-- | server/src/main.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/server/src/main.rs b/server/src/main.rs index f2c1440..2b2d2c0 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -19,18 +19,12 @@ pub mod federation; pub mod import; pub mod routes; -fn main() { +#[rocket::main] +async fn main() { enable_logging(); #[cfg(feature = "bypass-auth")] log::warn!("authentification bypass enabled"); - tokio::runtime::Builder::new_multi_thread() - .enable_all() - .build() - .unwrap() - .block_on(async_main()) -} -async fn async_main() { create_dir_all(&CONF.cache_path).await.unwrap(); let database = Database::open(&CONF.database_path).unwrap(); let federation = Federation::initialize(); |