You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "beiwei30 (GitHub)" <gi...@apache.org> on 2019/02/18 07:26:33 UTC

[GitHub] [incubator-dubbo] beiwei30 commented on issue #1861: the issue for setting loadbalancer.select (@SPI) completely extendable

I think @smallh0a1n1d0s hopes AbstractLoadBalance shouldn't provide select() impl like this:

```java
    @Override
    public <T> Invoker<T> select(List<Invoker<T>> invokers, URL url, Invocation invocation) {
        if (CollectionUtils.isEmpty(invokers)) {
            return null;
        }
        if (invokers.size() == 1) {
            return invokers.get(0);
        }
        return doSelect(invokers, url, invocation);
    }
```

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