Skip to content

Commit c5d26b2

Browse files
committed
update channel.rs, remove useless variables.
Signed-off-by: DogDu <[email protected]>
1 parent 0655459 commit c5d26b2

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/channel.rs

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -315,29 +315,6 @@ impl ChannelBuilder {
315315
self
316316
}
317317

318-
/// Set default gzip compression level.
319-
#[cfg(feature = "nightly")]
320-
pub fn default_gzip_compression_level(mut self, level: usize) -> ChannelBuilder {
321-
self.options.insert(
322-
Cow::Borrowed(grpcio_sys::GRPC_ARG_GZIP_COMPRESSION_LEVEL),
323-
Options::Integer(level as i32),
324-
);
325-
self
326-
}
327-
328-
/// Set default grpc min message size to compression.
329-
#[cfg(feature = "nightly")]
330-
pub fn default_grpc_min_message_size_to_compress(
331-
mut self,
332-
lower_bound: usize,
333-
) -> ChannelBuilder {
334-
self.options.insert(
335-
Cow::Borrowed(grpcio_sys::GRPC_ARG_MIN_MESSAGE_SIZE_TO_COMPRESS),
336-
Options::Integer(lower_bound as i32),
337-
);
338-
self
339-
}
340-
341318
/// Set default compression level for the channel.
342319
pub fn default_compression_level(mut self, level: CompressionLevel) -> ChannelBuilder {
343320
self.options.insert(

0 commit comments

Comments
 (0)