Skip to content

Commit

Permalink
Add method for set use local subchannel pool feature (#565)
Browse files Browse the repository at this point in the history
Signed-off-by: yulai.li <blacktear23@gmail.com>
  • Loading branch information
blacktear23 committed Apr 11, 2022
1 parent bc25905 commit 9d5dd69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,17 @@ impl ChannelBuilder {
self
}

/// Set use local subchannel pool
///
/// This method allows channel use it's owned subchannel pool.
pub fn use_local_subchannel_pool(mut self, enable: bool) -> ChannelBuilder {
self.options.insert(
Cow::Borrowed(grpcio_sys::GRPC_ARG_USE_LOCAL_SUBCHANNEL_POOL),
Options::Integer(enable as i32),
);
self
}

/// Set a raw integer configuration.
///
/// This method is only for bench usage, users should use the encapsulated API instead.
Expand Down

0 comments on commit 9d5dd69

Please sign in to comment.