horoc commented on code in PR #2464:
URL:
https://github.com/apache/incubator-eventmesh/pull/2464#discussion_r1039630853
##########
eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/util/RemotingHelper.java:
##########
@@ -72,13 +72,13 @@ public static String parseChannelRemoteAddr(final Channel
channel) {
return "";
}
- public static String parseSocketAddressAddr(SocketAddress socketAddress) {
+ public static String parseSocketAddressAddr(InetSocketAddress
socketAddress) {
if (socketAddress != null) {
- final String addr = socketAddress.toString();
+ return socketAddress.getAddress().getHostAddress() + ":" +
socketAddress.getPort();
- if (addr.length() > 0) {
- return addr.substring(1);
- }
+ //if (addr.length() > 0) {
+ // return addr.substring(1);
+ //}
Review Comment:
I think it's better to directly delete code here instead of commenting out.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]