diff options
author | Harald Musum <musum@verizonmedia.com> | 2021-08-16 10:49:40 +0200 |
---|---|---|
committer | Harald Musum <musum@verizonmedia.com> | 2021-08-16 10:49:40 +0200 |
commit | e5312c400cb8de725a4cf233808ee2f9f9a79798 (patch) | |
tree | e296aa664accc95ab08780ae484d11ef22d15553 /config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java | |
parent | e536003faa53fd4df212010357d2327946122c14 (diff) |
Stop sending hints about files that should be downloaded when doing prepare
This is just an optimzation and is not today in hosted Vespa, since
authorization will not allow access to any new files until application
is activated anyway
Diffstat (limited to 'config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java')
-rw-r--r-- | config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java b/config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java index 87d6554f691..d95da6e9a7c 100644 --- a/config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java +++ b/config-model/src/main/java/com/yahoo/config/model/test/MockRoot.java @@ -26,7 +26,6 @@ import java.io.IOException; import java.io.StringReader; import java.util.ArrayList; import java.util.Collections; -import java.util.List; import java.util.Set; @@ -41,10 +40,10 @@ public class MockRoot extends AbstractConfigProducerRoot { private static final long serialVersionUID = 1L; - private HostSystem hostSystem; + private final HostSystem hostSystem; private final DeployState deployState; - private FileDistributor fileDistributor; + private final FileDistributor fileDistributor; private Admin admin; public MockRoot() { @@ -67,7 +66,7 @@ public class MockRoot extends AbstractConfigProducerRoot { super(rootConfigId); hostSystem = new HostSystem(this, "hostsystem", deployState.getProvisioner(), deployState.getDeployLogger()); this.deployState = deployState; - fileDistributor = new FileDistributor(deployState.getFileRegistry(), List.of(), deployState.isHosted()); + fileDistributor = new FileDistributor(deployState.getFileRegistry()); } public FileDistributionConfigProducer getFileDistributionConfigProducer() { |