amaliujia commented on code in PR #1679:
URL: https://github.com/apache/ratis/pull/1679#discussion_r4468358463
##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcServerProtocolClient.java:
##########
@@ -109,7 +129,8 @@ public void close() {
if (useSeparateHBChannel) {
GrpcUtil.shutdownManagedChannel(hbChannel);
}
- GrpcUtil.shutdownManagedChannel(channel);
+ // the first one is the main channel
+ appendEntriesChannels.forEach(GrpcUtil::shutdownManagedChannel);
Review Comment:
Sounds good. It is probably just be a small win.
The code added is not complicated and easy to reason anyway.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]