Skip to content

Commit e0384a3

Browse files
authored
Add grpc use_local_subchannel_pool for client (#361)
Signed-off-by: yongman <yming0221@gmail.com>
1 parent 994225e commit e0384a3

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)