summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@oath.com>2019-01-17 13:38:34 +0100
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2019-01-22 12:17:32 +0100
commitf4470633a755474c7ce4ac66c191a7eb6c078213 (patch)
treee7513ba763185584812394e25260013aa34b3bf3 /config
parent1e3903b8fac15f1aa6ef2197846b36a92ef2e31b (diff)
Revert "Add jrt supervisor as constructor parameter"
This reverts commit 64c2d214d0122ba491f78c7298f0bf16ea3455bd.
Diffstat (limited to 'config')
-rw-r--r--config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
index 82306276617..efeaacf225b 100644
--- a/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
+++ b/config/src/main/java/com/yahoo/vespa/config/JRTConnectionPool.java
@@ -28,7 +28,7 @@ public class JRTConnectionPool implements ConnectionPool {
private static final Logger log = Logger.getLogger(JRTConnectionPool.class.getName());
- private final Supervisor supervisor;
+ private final Supervisor supervisor = new Supervisor(new Transport());
private final Map<String, JRTConnection> connections = new LinkedHashMap<>();
// The config sources used by this connection pool.
@@ -38,11 +38,6 @@ public class JRTConnectionPool implements ConnectionPool {
private volatile JRTConnection currentConnection;
public JRTConnectionPool(ConfigSourceSet sourceSet) {
- this(new Supervisor(new Transport()), sourceSet);
- }
-
- public JRTConnectionPool(Supervisor supervisor, ConfigSourceSet sourceSet) {
- this.supervisor = supervisor;
addSources(sourceSet);
}