From cceb5858c620653bfee86f690bd9c782bc3497bd Mon Sep 17 00:00:00 2001 From: zignis Date: Tue, 9 Apr 2024 00:21:36 +0530 Subject: [PATCH] disable gzip --- src/main.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index a9ebb7c..4e30987 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,7 +34,6 @@ use storiny_og::{ }; use tokio::sync::Mutex; use tonic::{ - codec::CompressionEncoding, metadata::MetadataValue, transport::Channel, }; @@ -152,8 +151,10 @@ fn main() -> io::Result<()> { Ok(req) }), ) - .send_compressed(CompressionEncoding::Gzip) - .accept_compressed(CompressionEncoding::Gzip); + // TODO: Uncomment once the server supports gzip. + // .send_compressed(CompressionEncoding::Gzip) + // .accept_compressed(CompressionEncoding::Gzip) + ; let app_state = web::Data::new(AppState { config: get_app_config().unwrap(),