提交 01827c8d 编写于 作者: Q qqeasonchen

remove unused code and fix typo

上级 b6e4be83
...@@ -71,8 +71,7 @@ public class ReplyMessageProcessorTest { ...@@ -71,8 +71,7 @@ public class ReplyMessageProcessorTest {
private MessageStore messageStore; private MessageStore messageStore;
@Mock @Mock
private Channel channel; private Channel channel;
@Mock
private TransactionalMessageService transactionMsgService;
private String topic = "FooBar"; private String topic = "FooBar";
private String group = "FooBarGroup"; private String group = "FooBarGroup";
private ClientChannelInfo clientInfo; private ClientChannelInfo clientInfo;
......
...@@ -83,7 +83,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -83,7 +83,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
return this.consumeMessageDirectly(ctx, request); return this.consumeMessageDirectly(ctx, request);
case RequestCode.PUSH_REPLY_MESSAGE_TO_CLIENT: case RequestCode.PUSH_REPLY_MESSAGE_TO_CLIENT:
return this.receiveReplyMssage(ctx, request); return this.receiveReplyMessage(ctx, request);
default: default:
break; break;
} }
...@@ -222,7 +222,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -222,7 +222,7 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
return response; return response;
} }
private RemotingCommand receiveReplyMssage(ChannelHandlerContext ctx, private RemotingCommand receiveReplyMessage(ChannelHandlerContext ctx,
RemotingCommand request) throws RemotingCommandException { RemotingCommand request) throws RemotingCommandException {
final RemotingCommand response = RemotingCommand.createResponseCommand(null); final RemotingCommand response = RemotingCommand.createResponseCommand(null);
...@@ -293,7 +293,9 @@ public class ClientRemotingProcessor implements NettyRequestProcessor { ...@@ -293,7 +293,9 @@ public class ClientRemotingProcessor implements NettyRequestProcessor {
requestResponseFuture.putResponseMessage(replyMsg); requestResponseFuture.putResponseMessage(replyMsg);
} }
} else { } else {
log.warn(String.format("receive reply message, but not matched any request, CorrelationId: %s", correlationId)); String bornHost = replyMsg.getBornHostString();
log.warn(String.format("receive reply message, but not matched any request, CorrelationId: %s , reply from host: %s",
correlationId, bornHost));
} }
} }
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册