common: improve notifications system
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I084bb95a4eb79d5a15f7c062c112124c6a6a6964
This commit is contained in:
parent
caadb52f64
commit
8c1968c863
2 changed files with 153 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ fn build_app(pool: sqlx::PgPool) -> axum::Router {
|
|||
pool,
|
||||
config,
|
||||
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
|
||||
http_client: reqwest::Client::new(),
|
||||
};
|
||||
fc_server::routes::router(state, &server_config)
|
||||
}
|
||||
|
|
@ -54,6 +55,7 @@ async fn test_router_no_duplicate_routes() {
|
|||
pool,
|
||||
config,
|
||||
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
|
||||
http_client: reqwest::Client::new(),
|
||||
};
|
||||
|
||||
let _app = fc_server::routes::router(state, &server_config);
|
||||
|
|
@ -68,6 +70,7 @@ fn build_app_with_config(
|
|||
pool,
|
||||
config,
|
||||
sessions: std::sync::Arc::new(dashmap::DashMap::new()),
|
||||
http_client: reqwest::Client::new(),
|
||||
};
|
||||
fc_server::routes::router(state, &server_config)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue