Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zkkxu committed Jun 22, 2022
1 parent b02ec00 commit c0280d0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions grpc-sys/bindings/bindings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ pub const GRPC_COMPRESSION_CHANNEL_DEFAULT_ALGORITHM: &[u8; 35usize] =
b"grpc.default_compression_algorithm\0";
pub const GRPC_GZIP_COMPRESSION_LEVEL: &[u8; 28usize] =
b"grpc.gzip_compression_level\0";
pub const GRPC_COMPRESSION_LOWER_BOUND: &[u8; 29usize] =
b"grpc.compression_lower_bound\0";
pub const GRPC_MIN_MESSAGE_SIZE_TO_COMPRESS: &[u8; 39usize] =
b"grpc.gprc_min_message_size_to_compress\0";
pub const GRPC_COMPRESSION_CHANNEL_DEFAULT_LEVEL: &[u8; 31usize] =
b"grpc.default_compression_level\0";
pub const GRPC_COMPRESSION_CHANNEL_ENABLED_ALGORITHMS_BITSET: &[u8; 43usize] =
Expand Down
2 changes: 1 addition & 1 deletion grpc-sys/grpc
Submodule grpc updated from 03aba6 to c566e4
6 changes: 3 additions & 3 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,10 @@ impl ChannelBuilder {
self
}

/// Set default compression lower bound.
pub fn default_compression_lower_bound(mut self, lowerBound: usize) -> ChannelBuilder {
/// Set default grpc min message size to compression.
pub fn default_grpc_min_message_size_to_compress(mut self, lowerBound: usize) -> ChannelBuilder {
self.options.insert(
Cow::Borrowed(grpcio_sys::GRPC_COMPRESSION_LOWER_BOUND),
Cow::Borrowed(grpcio_sys::GRPC_MIN_MESSAGE_SIZE_TO_COMPRESS),
Options::Integer(lowerBound as i32),
);
self
Expand Down

0 comments on commit c0280d0

Please sign in to comment.