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 {