Skip to content

Commit

Permalink
[INLONG-11595][SDK] Optimize the implementation of node connection ma…
Browse files Browse the repository at this point in the history
…nagement
  • Loading branch information
gosonzhang committed Dec 11, 2024
1 parent 2527746 commit 5bdd39e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public ClientHandler(Sender sender, ClientMgr clientMgr) {
}

@Override
public void channelRead0(ChannelHandlerContext ctx, EncodeObject e) {
public void channelRead0(ChannelHandlerContext ctx, EncodeObject encodeObject) {
try {
if (e.getMsgtype() != 8) {
sender.notifyFeedback(ctx.channel(), e);
if (encodeObject.getMsgtype() != 8) {
sender.notifyFeedback(ctx.channel(), encodeObject);
}
} catch (Throwable ex) {
if (thrownCnt.shouldPrint()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public boolean connect(boolean needPrint) {

public void operationComplete(ChannelFuture arg0) throws Exception {
awaitLatch.countDown();
// logger.debug("Connect to {} ack!", hostInfo.getReferenceName());
}
});
try {
Expand Down Expand Up @@ -127,7 +126,6 @@ public boolean close(boolean needPrint) {

public void operationComplete(ChannelFuture arg0) throws Exception {
awaitLatch.countDown();
// logger.debug("Close client {} acked", hostInfo.getReferenceName());
}
});
// Wait until the connection is close.
Expand Down

0 comments on commit 5bdd39e

Please sign in to comment.