dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khanimteyaz (GitHub) <git...@apache.org>
Subject [GitHub] [incubator-dubbo] khanimteyaz commented on pull request #2975: add period check that whether provider exists or not for zk registry
Date Mon, 17 Dec 2018 11:21:31 GMT
Just as an thought, can be rewritten as 

boolean serviceExist= childPath.stream()
                .map(URL::valueOf)
                .anyMatch(url->url.getHost().equalsIgnoreCase(host) && url.getPort()==port);
        

[ Full content available at: https://github.com/apache/incubator-dubbo/pull/2975 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org


Mime
View raw message