mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-14 13:41:01 +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_web::{middleware::Logger, web, App, HttpServer};
|
||||
use actix_web::{
|
||||
middleware::{Compress, Logger},
|
||||
web, App, HttpServer,
|
||||
};
|
||||
|
||||
mod apub;
|
||||
mod args;
|
||||
|
@ -116,6 +119,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
}
|
||||
|
||||
App::new()
|
||||
.wrap(Compress::default())
|
||||
.wrap(Logger::default())
|
||||
.data(db.clone())
|
||||
.data(state.clone())
|
||||
|
|
Loading…
Reference in a new issue