MatrixHB commented on code in PR #52:
URL: 
https://github.com/apache/rocketmq-schema-registry/pull/52#discussion_r956706951


##########
common/src/main/java/org/apache/rocketmq/schema/registry/common/utils/CommonUtil.java:
##########
@@ -247,4 +251,30 @@ public static long getSchemaRecordId(long schemaId, long 
schemaVersion) {
         return schemaId | schemaVersion;
     }
 
+    public static String getIp() {
+        String ip = "";
+
+        try {
+            Enumeration<NetworkInterface> netInterfaces = 
NetworkInterface.getNetworkInterfaces();
+            InetAddress inetAddress;
+            boolean found = false;
+            while (netInterfaces.hasMoreElements() && !found) {

Review Comment:
   it seems that boolean found is always false



-- 
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]

Reply via email to