mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
meow
This commit is contained in:
parent
f3e010a321
commit
6ec80a7d6d
10
src/main.rs
10
src/main.rs
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue