This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 6cc27709a fix call the same method twice
new b3f087494 Merge pull request #2841 from chenyi19851209/bugfix/issue2664
6cc27709a is described below
commit 6cc27709a491d3c199c4591f2294757819b7eadd
Author: nicolchen <[email protected]>
AuthorDate: Fri Jan 6 19:34:35 2023 +0800
fix call the same method twice
---
.../core/protocol/http/processor/BatchSendMessageProcessor.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java
index 41c0c50fd..418395bbb 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/BatchSendMessageProcessor.java
@@ -80,11 +80,11 @@ public class BatchSendMessageProcessor implements
HttpRequestProcessor {
public void processRequest(ChannelHandlerContext ctx,
AsyncContext<HttpCommand> asyncContext) throws Exception {
HttpCommand responseEventMeshCommand;
-
+ String localAddress = IPUtils.getLocalAddress();
cmdLogger.info("cmd={}|{}|client2eventMesh|from={}|to={}",
RequestCode.get(
Integer.valueOf(asyncContext.getRequest().getRequestCode())),
EventMeshConstants.PROTOCOL_HTTP,
- RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
IPUtils.getLocalAddress());
+ RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
localAddress);
SendMessageBatchRequestHeader sendMessageBatchRequestHeader =
(SendMessageBatchRequestHeader)
asyncContext.getRequest().getHeader();
@@ -92,7 +92,7 @@ public class BatchSendMessageProcessor implements
HttpRequestProcessor {
SendMessageBatchResponseHeader sendMessageBatchResponseHeader =
SendMessageBatchResponseHeader.buildHeader(Integer.valueOf(asyncContext.getRequest().getRequestCode()),
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshCluster(),
- IPUtils.getLocalAddress(),
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshEnv(),
+ localAddress,
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshEnv(),
eventMeshHTTPServer.getEventMeshHttpConfiguration().getEventMeshIDC());
String protocolType = sendMessageBatchRequestHeader.getProtocolType();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]