mirror of
https://git.asonix.dog/asonix/relay.git
synced 2025-02-19 15:06:17 +00:00
Add compression middleware back in, but put it logically inside the logger
This commit is contained in:
parent
96050bfde7
commit
60da0ecc9e
1 changed files with 5 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
use actix::Arbiter;
|
use actix::Arbiter;
|
||||||
use actix_web::{middleware::Logger, web, App, HttpServer};
|
use actix_web::{
|
||||||
|
middleware::{Compress, Logger},
|
||||||
|
web, App, HttpServer,
|
||||||
|
};
|
||||||
|
|
||||||
mod apub;
|
mod apub;
|
||||||
mod args;
|
mod args;
|
||||||
|
@ -116,6 +119,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
||||||
}
|
}
|
||||||
|
|
||||||
App::new()
|
App::new()
|
||||||
|
.wrap(Compress::default())
|
||||||
.wrap(Logger::default())
|
.wrap(Logger::default())
|
||||||
.data(db.clone())
|
.data(db.clone())
|
||||||
.data(state.clone())
|
.data(state.clone())
|
||||||
|
|
Loading…
Reference in a new issue