Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove compression #455

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions tests/env/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::collections::HashMap;
use std::sync::Arc;
use std::sync::Once;
use tempfile::NamedTempFile;
use tonic::codegen::CompressionEncoding;
use tonic::transport::{Channel, Endpoint, Uri};
use tracing::{error, info};

Expand Down Expand Up @@ -63,9 +62,7 @@ impl Node {
node.attach_process(shard_id, process);
}

let raft_svc = sorock::service::raft::new(node.clone())
.send_compressed(CompressionEncoding::Zstd)
.accept_compressed(CompressionEncoding::Zstd);
let raft_svc = sorock::service::raft::new(node.clone());
let monitor_svc = sorock::service::monitor::new(node);
let reflection_svc = sorock::service::reflection::new();
let ping_svc = testapp::ping_app::new_service();
Expand Down
5 changes: 1 addition & 4 deletions tests/testapp/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use anyhow::Result;
use bytes::Bytes;
use sorock::service::raft::client::*;
use tonic::codegen::CompressionEncoding;
use tonic::transport::Channel;

pub mod ping_app;
Expand Down Expand Up @@ -53,9 +52,7 @@ pub struct Client {
}
impl Client {
pub fn new(conn: Channel) -> Self {
let cli = RaftClient::new(conn)
.send_compressed(CompressionEncoding::Zstd)
.accept_compressed(CompressionEncoding::Zstd);
let cli = RaftClient::new(conn);
Self { cli }
}

Expand Down
Loading