summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-09-16 16:50:20 +0200
committerGitHub <noreply@github.com>2019-09-16 16:50:20 +0200
commitc9babe83512093d584ae73b98c2df91a28d13343 (patch)
tree2666e4e6c501097197101393feb42b5db6f001fb /container-search
parentdba5c7dde6b85ece603e1f510c3df7918f238bfe (diff)
parent5b1b025c4dbf2029093bc0eb989f6a65c5181e90 (diff)
Merge pull request #10670 from vespa-engine/balder/use-java-dispatch-by-default
Balder/use java dispatch by default
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..ccb265b799b 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());
}
@@ -46,6 +46,7 @@ class MockDispatcher extends Dispatcher {
dispatchConfigNodeBuilder.key(key++); // not used
dispatchConfigBuilder.node(dispatchConfigNodeBuilder);
}
+ dispatchConfigBuilder.useFdispatchByDefault(true);
return new DispatchConfig(dispatchConfigBuilder);
}
}