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

Make the ServerLayer work properly with axum

This commit is contained in:
Quentin Gliech
2022-03-25 10:09:01 +01:00
parent 7c8f8722cd
commit 9b5ecd5bc4
5 changed files with 18 additions and 23 deletions

View File

@ -25,6 +25,7 @@ use hyper::Server;
use mas_axum_utils::UrlBuilder;
use mas_config::RootConfig;
use mas_email::{MailTransport, Mailer};
use mas_http::ServerLayer;
use mas_storage::MIGRATOR;
use mas_tasks::TaskQueue;
use mas_templates::Templates;
@ -215,7 +216,8 @@ impl Options {
&encrypter,
&mailer,
&url_builder,
);
)
.layer(ServerLayer::default());
info!("Listening on http://{}", listener.local_addr().unwrap());