mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-22 04:45:37 +00:00
remove TODO around copying hosts when rotating the collection, it's not a problem for now
This commit is contained in:
parent
8f7b7fb813
commit
116805b28b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user