From be3cb036a25f451e21621643d7db4b7592b361e1 Mon Sep 17 00:00:00 2001 From: chuntaojun Date: Tue, 11 Jun 2019 10:01:55 +0800 Subject: [PATCH] refactor(nacos-client:config): remove un use constructor --- .../client/config/impl/ServerListManager.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java index 887123dda..aa3a2fab1 100644 --- a/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java +++ b/client/src/main/java/com/alibaba/nacos/client/config/impl/ServerListManager.java @@ -447,21 +447,6 @@ class ServerAddressIterator implements Iterator { iter = sorted.iterator(); } - // Consider adding a penalty mechanism, with the offending node coming last - - public ServerAddressIterator(List source, String errServerIp) { - sorted = new ArrayList(); - for (String address : source) { - if (address.equals(errServerIp)) { - continue; - } - sorted.add(new RandomizedServerAddress(address)); - } - Collections.sort(sorted); - sorted.add(new RandomizedServerAddress(errServerIp)); - iter = sorted.iterator(); - } - @Override public boolean hasNext() { return iter.hasNext();