Skip to content

Commit

Permalink
bug found?
Browse files Browse the repository at this point in the history
  • Loading branch information
CutestNekoAqua committed Apr 18, 2024
1 parent c160218 commit 8afd6a9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub struct State {
pub database_connection: Arc<DatabaseConnection>,
}

pub type StateHandle = Arc<State>;
pub type StateHandle = State;

/// Our "database" which contains all known users (local and federated)
#[derive(Debug)]
Expand Down
2 changes: 0 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,6 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {

let user = user.insert(&db).await;

let config = Config {};

let state: State = State {
database_connection: db.into(),
};
Expand Down

0 comments on commit 8afd6a9

Please sign in to comment.