Removed unneccesary result from main func
This commit is contained in:
parent
5b86b21734
commit
0574c59006
@ -11,7 +11,7 @@ use dao::{main_dao::{self, run_all_migrations}};
|
||||
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), std::io::Error> {
|
||||
async fn main(){
|
||||
|
||||
// Retrieve env variables and send to services that need them.
|
||||
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 };
|
||||
|
||||
// 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();
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user