This is an automated email from the ASF dual-hosted git repository.
jonyang 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 5bd2e9315 extract getLocalAddress for single variable for reused.
(#2840)
5bd2e9315 is described below
commit 5bd2e9315197827beadf67d30d5209bf419ee0db
Author: nicolchen <[email protected]>
AuthorDate: Mon Jan 9 13:07:24 2023 +0800
extract getLocalAddress for single variable for reused. (#2840)
---
.../core/protocol/http/processor/LocalSubscribeEventProcessor.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalSubscribeEventProcessor.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalSubscribeEventProcessor.java
index 3a2e57845..eb854072e 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalSubscribeEventProcessor.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalSubscribeEventProcessor.java
@@ -63,11 +63,11 @@ public class LocalSubscribeEventProcessor extends
AbstractEventProcessor {
final Channel channel = handlerSpecific.getCtx().channel();
final HttpEventWrapper requestWrapper =
handlerSpecific.getAsyncContext().getRequest();
-
+ String localAddress = IPUtils.getLocalAddress();
if (log.isInfoEnabled()) {
log.info("uri={}|{}|client2eventMesh|from={}|to={}",
requestWrapper.getRequestURI(),
EventMeshConstants.PROTOCOL_HTTP,
RemotingHelper.parseChannelRemoteAddr(channel),
- IPUtils.getLocalAddress());
+ localAddress);
}
// user request header
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]