Removed unneccesary result from main func

This commit is contained in:
franklinblanco 2022-08-12 20:14:07 -04:00
parent 5b86b21734
commit 0574c59006

View File

@ -11,7 +11,7 @@ use dao::{main_dao::{self, run_all_migrations}};
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), std::io::Error> { async fn main(){
// Retrieve env variables and send to services that need them. // Retrieve env variables and send to services that need them.
let env_vars = env_util::get_dot_env_map(); let env_vars = env_util::get_dot_env_map();
@ -29,6 +29,6 @@ async fn main() -> Result<(), std::io::Error> {
let shared_state_obj = SharedStateObj {db_conn, env_vars }; let shared_state_obj = SharedStateObj {db_conn, env_vars };
// Pass shared state to server and start it // Pass shared state to server and start it
start_all_routes(&after_startup_fn, shared_state_obj).await start_all_routes(&after_startup_fn, shared_state_obj).await.unwrap();
} }