This commit is contained in:
April John 2024-04-16 20:44:08 +00:00 committed by GitHub
parent f3e010a321
commit 6ec80a7d6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,9 +24,14 @@ mod http;
mod objects; mod objects;
mod utils; mod utils;
#[derive(Debug, Clone)]
struct Config {
}
#[derive(Debug, Clone)] #[derive(Debug, Clone)]
struct State { struct State {
database: Arc<Database>, database: Arc<Database>,
config: Arc<Config>
} }
#[derive(Debug, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
@ -87,8 +92,13 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
users: Mutex::new(vec![local_user]), users: Mutex::new(vec![local_user]),
}); });
let config = Config {
};
let state: State = State { let state: State = State {
database: new_database, database: new_database,
config: Arc::new(config)
}; };
let data = FederationConfig::builder() let data = FederationConfig::builder()