*start swarm in boot first, before even plugins since they kickstart the rpc singleton

This commit is contained in:
Derrick Hammer 2022-11-26 17:13:37 -05:00
parent ec33e40c74
commit 5c02356595
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ import config from "./config.js";
import { loadPlugins } from "./modules/plugin.js";
import { start as startDns } from "./modules/dns.js";
import { start as startSSl } from "./modules/ssl.js";
import { start as startSwarm } from "./modules/swarm.js";
import { generateSeedPhraseDeterministic } from "libskynet";
import * as crypto from "crypto";
@ -20,6 +21,7 @@ if (!config.str("seed")) {
}
async function boot() {
await startSwarm();
await loadPlugins();
await startApp();
await startRpc();