From 61234e9c07e0812ad48a450f6828b7d934d1d671 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 8 Jul 2022 12:50:46 -0700 Subject: [PATCH] Fix missing code from main.rs --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a85ed70..0cc3a30 100644 --- a/src/main.rs +++ b/src/main.rs @@ -5,7 +5,11 @@ mod database; pub use database::Database; use actix_web::{get, web, App, HttpResponse, HttpServer, Responder}; -use std::sync::{LockResult, Mutex}; +use std::sync::Mutex; + +struct AppState { + db: Mutex +} #[get("/comments")] async fn get_comments(data: web::Data) -> impl Responder {