mirror of
https://github.com/versia-pub/activitypub.git
synced 2025-12-06 14:48:19 +01:00
[fix]: format tree
This commit is contained in:
parent
36af08918e
commit
db996b56a9
11
src/main.rs
11
src/main.rs
|
|
@ -25,13 +25,12 @@ mod objects;
|
||||||
mod utils;
|
mod utils;
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct Config {
|
struct Config {}
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
struct State {
|
struct State {
|
||||||
database: Arc<Database>,
|
database: Arc<Database>,
|
||||||
config: Arc<Config>
|
config: Arc<Config>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
|
@ -92,13 +91,11 @@ async fn main() -> actix_web::Result<(), anyhow::Error> {
|
||||||
users: Mutex::new(vec![local_user]),
|
users: Mutex::new(vec![local_user]),
|
||||||
});
|
});
|
||||||
|
|
||||||
let config = Config {
|
let config = Config {};
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
let state: State = State {
|
let state: State = State {
|
||||||
database: new_database,
|
database: new_database,
|
||||||
config: Arc::new(config)
|
config: Arc::new(config),
|
||||||
};
|
};
|
||||||
|
|
||||||
let data = FederationConfig::builder()
|
let data = FederationConfig::builder()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue