fantiq commented on code in PR #15639:
URL: https://github.com/apache/dubbo/pull/15639#discussion_r2387388439


##########
dubbo-common/src/main/java/org/apache/dubbo/common/utils/UrlUtils.java:
##########
@@ -522,6 +523,10 @@ public static boolean isRegistry(URL url) {
                 || (url.getProtocol() != null && 
url.getProtocol().endsWith("-registry-protocol"));
     }
 
+    public static boolean isCheck(URL url) {
+        return url.getParameter(CHECK_KEY, true) && url.getPort() != 0;

Review Comment:
   > why check url.getPort() != 0?
   
   It just kept the original logic, maybe it can be removed.



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

Reply via email to