mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 06:38:20 +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 utils;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
struct Config {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
struct State {
|
||||
database: Arc<Database>,
|
||||
config: Arc<Config>
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
|
|
@ -87,8 +92,13 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
|
|||
users: Mutex::new(vec![local_user]),
|
||||
});
|
||||
|
||||
let config = Config {
|
||||
|
||||
};
|
||||
|
||||
let state: State = State {
|
||||
database: new_database,
|
||||
config: Arc::new(config)
|
||||
};
|
||||
|
||||
let data = FederationConfig::builder()
|
||||
|
|
|
|||
Loading…
Reference in a new issue