aboutsummaryrefslogtreecommitdiff
path: root/api/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'api/src/main.rs')
-rw-r--r--api/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/main.rs b/api/src/main.rs
index 8d4f537..ad55992 100644
--- a/api/src/main.rs
+++ b/api/src/main.rs
@@ -18,7 +18,7 @@ fn init_log() {
#[actix_rt::main]
async fn main() -> Result<()> {
init_log();
- let client = web::Data::new(Mutex::new(db::init()));
+ let client = web::Data::new(Mutex::new(db::init().await.unwrap()));
HttpServer::new(move || {
App::new()
.app_data(client.clone())