Skip to content

Commit 0af9c1f

Browse files
committed
Add grpc use_local_subchannel_pool for client
Signed-off-by: yongman <[email protected]>
1 parent 994225e commit 0af9c1f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tikv-client-common/src/security.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ impl SecurityManager {
7878

7979
let cb = ChannelBuilder::new(env)
8080
.keepalive_time(Duration::from_secs(10))
81-
.keepalive_timeout(Duration::from_secs(3));
81+
.keepalive_timeout(Duration::from_secs(3))
82+
.use_local_subchannel_pool(true);
8283

8384
let channel = if self.ca.is_empty() {
8485
cb.connect(&addr)

0 commit comments

Comments
 (0)