summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-09-16 16:20:22 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2019-09-16 16:20:22 +0200
commit9bfb1fbc7d7010f2dee7d98527ffece3d4dbb00b (patch)
tree4fb47200cb1ed11bae5d50e02323c902b0f15509 /container-search
parenta30ea6f8527a5d5cfacf84d4a576929b91d83153 (diff)
Use java dispatch by default all over the world.
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/test/java/com/yahoo/prelude/fastsearch/test/MockDispatcher.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/container-search/src/test/java/com/yahoo/prelude/fastsearch/test/MockDispatcher.java b/container-search/src/test/java/com/yahoo/prelude/fastsearch/test/MockDispatcher.java
index 92ccd7e46b2..61ee384d1d3 100644
--- a/container-search/src/test/java/com/yahoo/prelude/fastsearch/test/MockDispatcher.java
+++ b/container-search/src/test/java/com/yahoo/prelude/fastsearch/test/MockDispatcher.java
@@ -30,7 +30,7 @@ class MockDispatcher extends Dispatcher {
private MockDispatcher(SearchCluster searchCluster, DispatchConfig dispatchConfig, FS4ResourcePool fs4ResourcePool,
RpcResourcePool rpcResourcePool) {
- super(searchCluster, dispatchConfig, new RpcInvokerFactory(rpcResourcePool, searchCluster, !dispatchConfig.useFdispatchByDefault()),
+ super(searchCluster, dispatchConfig, new RpcInvokerFactory(rpcResourcePool, searchCluster, dispatchConfig.dispatchWithProtobuf()),
new FS4PingFactory(fs4ResourcePool), new MockMetric());
}
@@ -45,6 +45,7 @@ class MockDispatcher extends Dispatcher {
dispatchConfigNodeBuilder.group(node.group());
dispatchConfigNodeBuilder.key(key++); // not used
dispatchConfigBuilder.node(dispatchConfigNodeBuilder);
+ dispatchConfigBuilder.useFdispatchByDefault(true);
}
return new DispatchConfig(dispatchConfigBuilder);
}