refactor: only check for swarm in networkReady

This commit is contained in:
Derrick Hammer 2023-09-11 05:46:31 -04:00
parent 4e13f44b66
commit d90c30676a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 5 deletions

View File

@ -12,11 +12,7 @@ const CORE_MODULES = {
};
export async function networkReady() {
for (const module of [
CORE_MODULES.peerDiscoveryRegistry,
CORE_MODULES.ircPeerDiscovery,
CORE_MODULES.swarm,
]) {
for (const module of [CORE_MODULES.swarm]) {
if (!moduleLoaded(module)) {
return false;
}