summaryrefslogtreecommitdiff
path: root/benchmarks/src/main/java
diff options
context:
space:
mode:
authorYannick Welsch <yannick@welsch.lu>2017-05-05 08:39:18 +0200
committerGitHub <noreply@github.com>2017-05-05 08:39:18 +0200
commitc8712e9531f55e84899be0f65fe435ae09f6a6a5 (patch)
tree99c2d8cadb0cbf67f49a71d709ff71a9bbf0e034 /benchmarks/src/main/java
parent035494fa175187fe57a11cca9f6b6e5b4fbc54ad (diff)
Limit AllocationService dependency injection hack (#24479)
Changes the scope of the AllocationService dependency injection hack so that it is at least contained to the AllocationService and does not leak into the Discovery world.
Diffstat (limited to 'benchmarks/src/main/java')
-rw-r--r--benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java b/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java
index 4d8f7cfeaa..591fa400d1 100644
--- a/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java
+++ b/benchmarks/src/main/java/org/elasticsearch/benchmark/routing/allocation/Allocators.java
@@ -36,8 +36,6 @@ import org.elasticsearch.common.util.set.Sets;
import org.elasticsearch.gateway.GatewayAllocator;
import java.lang.reflect.InvocationTargetException;
-import java.net.InetAddress;
-import java.net.UnknownHostException;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
@@ -49,7 +47,7 @@ public final class Allocators {
public static final NoopGatewayAllocator INSTANCE = new NoopGatewayAllocator();
protected NoopGatewayAllocator() {
- super(Settings.EMPTY, null, null);
+ super(Settings.EMPTY);
}
@Override