bug found?

This commit is contained in:
aprilthepink 2024-04-18 04:27:22 +02:00
parent c160218de6
commit 8afd6a9468
2 changed files with 1 additions and 3 deletions

View file

@ -13,7 +13,7 @@ pub struct State {
pub database_connection: Arc<DatabaseConnection>, pub database_connection: Arc<DatabaseConnection>,
} }
pub type StateHandle = Arc<State>; pub type StateHandle = State;
/// Our "database" which contains all known users (local and federated) /// Our "database" which contains all known users (local and federated)
#[derive(Debug)] #[derive(Debug)]

View file

@ -96,8 +96,6 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
let user = user.insert(&db).await; let user = user.insert(&db).await;
let config = Config {};
let state: State = State { let state: State = State {
database_connection: db.into(), database_connection: db.into(),
}; };