Skip to content

Commit

Permalink
add gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
zignis committed Apr 11, 2024
1 parent f061d39 commit 2b8edd9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ use storiny_og::{
};
use tokio::sync::Mutex;
use tonic::{
codegen::CompressionEncoding,
metadata::MetadataValue,
transport::Channel,
};
Expand Down Expand Up @@ -151,10 +152,8 @@ fn main() -> io::Result<()> {
Ok(req)
}),
)
// TODO: Uncomment once the server supports gzip.
// .send_compressed(CompressionEncoding::Gzip)
// .accept_compressed(CompressionEncoding::Gzip)
;
.send_compressed(CompressionEncoding::Gzip)
.accept_compressed(CompressionEncoding::Gzip);

let app_state = web::Data::new(AppState {
config: get_app_config().unwrap(),
Expand Down

0 comments on commit 2b8edd9

Please sign in to comment.