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 6da45c28f extract getLocalAddress for single variable for reused.
new 34d2e6dd3 Merge pull request #2839 from chenyi19851209/bugfix/issue2667
6da45c28f is described below
commit 6da45c28f05a0d147e14dac42f94c86eb7202a12
Author: nicolchen <[email protected]>
AuthorDate: Fri Jan 6 19:22:56 2023 +0800
extract getLocalAddress for single variable for reused.
---
.../core/protocol/http/processor/LocalUnSubscribeEventProcessor.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalUnSubscribeEventProcessor.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalUnSubscribeEventProcessor.java
index 11c9df06d..ae703436f 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalUnSubscribeEventProcessor.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalUnSubscribeEventProcessor.java
@@ -76,10 +76,11 @@ public class LocalUnSubscribeEventProcessor extends
AbstractEventProcessor {
final HttpEventWrapper requestWrapper = asyncContext.getRequest();
+ String localAddress = IPUtils.getLocalAddress();
if (log.isInfoEnabled()) {
log.info("uri={}|{}|client2eventMesh|from={}|to={}",
requestWrapper.getRequestURI(),
EventMeshConstants.PROTOCOL_HTTP,
- RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
IPUtils.getLocalAddress());
+ RemotingHelper.parseChannelRemoteAddr(ctx.channel()),
localAddress);
}
// user request header
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]