1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Bump the latest axum rc

This commit is contained in:
Quentin Gliech
2022-11-18 14:41:07 +01:00
parent 0ecda1e468
commit c76a1dd2e7
22 changed files with 225 additions and 189 deletions

View File

@@ -205,7 +205,7 @@ impl Options {
let graphql_schema = mas_handlers::graphql_schema(&pool);
let state = Arc::new(AppState {
let state = AppState {
pool,
templates,
key_store,
@@ -215,7 +215,7 @@ impl Options {
homeserver,
policy_factory,
graphql_schema,
});
};
let mut fd_manager = listenfd::ListenFd::from_env();
@@ -234,8 +234,9 @@ impl Options {
};
// and build the router
let router = crate::server::build_router(&state, &config.resources)
.layer(ServerLayer::new(config.name.clone()));
let router = crate::server::build_router(state.clone(), &config.resources)
.layer(ServerLayer::new(config.name.clone()))
.into_service();
// Display some informations about where we'll be serving connections
let is_tls = config.tls.is_some();