Implement hosts downloading needed mods

Download and cache needed mods to run instance mod packs on instance
startup.  To avoid opening too many download streams at once only one
mod is downloaded at a time.
This commit is contained in:
Hornwitser committed 2023-12-03 20:15:07 +01:00
1 parent 853866492b
commit a2eb98ac93
5 files changed
+114 -15

No files matched your search

+8 -1
View File
@@ -203,7 +203,14 @@ async function startHost() {
}
let hostConnector = new HostConnector(hostConfig, tlsCa, pluginInfos);
let host = new Host(hostConnector, args.config, hostConfig, tlsCa, pluginInfos);
let host = new Host(
hostConnector,
args.config,
hostConfig,
tlsCa,
pluginInfos,
...await Host.bootstrap(hostConfig)
);
// Handle interrupts
let secondSigint = false;