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 #3013: [DUBBO-2988] Unrecognized the other provider
Date Thu, 20 Dec 2018 07:30:58 GMT
Can be simplified to 
`private void printAllProvidedServices(StringBuilder buf, boolean detail) {
        if(!ApplicationModel.allProviderModels().isEmpty()) {
            buf.append("PROVIDER:\r\n");
        }
        for (ProviderModel provider : ApplicationModel.allProviderModels()) {
            buf.append(provider.getServiceName());
            if (detail) {
                buf.append(" -> ");
                buf.append(" published: ");
                buf.append(isRegistered(provider.getServiceName()) ? "Y" : "N");
            }
            buf.append("\r\n");
        }
    }`

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


Mime
View raw message