summaryrefslogtreecommitdiffstats
path: root/container-search/src
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@verizonmedia.com>2020-01-09 10:02:15 +0100
committerJon Bratseth <bratseth@verizonmedia.com>2020-01-09 10:02:15 +0100
commit039d35bf09d6ea2b0a063f1dbc581e85d71da4a0 (patch)
tree0efea02e99e2ec3c4c7891eb370d8023e1a8de85 /container-search/src
parent919fd85dae2ed0de98b8a336755d9cf5fc66a6d1 (diff)
Deprecate and ignore use-local-node
Diffstat (limited to 'container-search/src')
-rw-r--r--container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java14
1 files changed, 2 insertions, 12 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java
index fb55e330ebe..eff6ae26816 100644
--- a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java
+++ b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java
@@ -137,18 +137,8 @@ public class SearchCluster implements NodeManager<Node> {
private static ImmutableList<Node> toNodes(DispatchConfig dispatchConfig) {
ImmutableList.Builder<Node> nodesBuilder = new ImmutableList.Builder<>();
- Predicate<DispatchConfig.Node> filter;
- if (dispatchConfig.useLocalNode()) {
- final String hostName = HostName.getLocalhost();
- filter = node -> node.host().equals(hostName);
- } else {
- filter = node -> true;
- }
- for (DispatchConfig.Node node : dispatchConfig.node()) {
- if (filter.test(node)) {
- nodesBuilder.add(new Node(node.key(), node.host(), node.group()));
- }
- }
+ for (DispatchConfig.Node node : dispatchConfig.node())
+ nodesBuilder.add(new Node(node.key(), node.host(), node.group()));
return nodesBuilder.build();
}