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…
	
	Add table
		
		Reference in a new issue