You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-08-07 17:03:01 +03:00
Migrate to axum 0.6.0-rc.5
This commit is contained in:
@@ -29,6 +29,7 @@ use mas_storage::MIGRATOR;
|
||||
use mas_tasks::TaskQueue;
|
||||
use mas_templates::Templates;
|
||||
use tokio::signal::unix::SignalKind;
|
||||
use tower::Layer;
|
||||
use tracing::{error, info, log::warn};
|
||||
|
||||
#[derive(Parser, Debug, Default)]
|
||||
@@ -215,9 +216,8 @@ impl Options {
|
||||
};
|
||||
|
||||
// and build the router
|
||||
let router = crate::server::build_router(state.clone(), &config.resources)
|
||||
.layer(ServerLayer::new(config.name.clone()))
|
||||
.into_service();
|
||||
let router = crate::server::build_router(state.clone(), &config.resources);
|
||||
let router = ServerLayer::new(config.name.clone()).layer(router);
|
||||
|
||||
// Display some informations about where we'll be serving connections
|
||||
let is_tls = config.tls.is_some();
|
||||
|
Reference in New Issue
Block a user