You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by GitBox <gi...@apache.org> on 2023/01/07 02:36:52 UTC

[GitHub] [incubator-eventmesh] jonyangx commented on a diff in pull request #2839: extract getLocalAddress for single variable for reused.

jonyangx commented on code in PR #2839:
URL: https://github.com/apache/incubator-eventmesh/pull/2839#discussion_r1063940821


##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/processor/LocalUnSubscribeEventProcessor.java:
##########
@@ -76,10 +76,11 @@ public void handler(final HandlerService.HandlerSpecific handlerSpecific, final
 
         final HttpEventWrapper requestWrapper = asyncContext.getRequest();
 
+        String localAddress = IPUtils.getLocalAddress();

Review Comment:
   When call IPUtils.getLocalAddress() one time,it's redundant code.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org