remove TODO around copying hosts when rotating the collection, it's not a problem for now

This commit is contained in:
javanna 2016-06-13 14:02:01 +02:00 committed by Luca Cavanna
parent 8f7b7fb813
commit 116805b28b

View File

@ -244,7 +244,6 @@ public final class RestClient implements Closeable {
}
List<HttpHost> rotatedHosts = new ArrayList<>(filteredHosts);
//TODO is it possible to make this O(1)? (rotate is O(n))
Collections.rotate(rotatedHosts, rotatedHosts.size() - lastHostIndex.getAndIncrement());
return rotatedHosts;
}