can be replace by
```
public static int getConsumerAddressNum(String serviceUniqueName) {
Set<ConsumerInvokerWrapper> providerInvokerWrapperSet =
ProviderConsumerRegTable.getConsumerInvoker(serviceUniqueName);
return providerInvokerWrapperSet.stream()
.map(piw->piw.getRegistryDirectory().getUrlInvokerMap())
.filter(Objects::nonNull)
.mapToInt(Map::size).sum();
}
```
[ Full content available at:
https://github.com/apache/incubator-dubbo/pull/3013 ]
This message was relayed via gitbox.apache.org for
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]