refactor: only check for swarm in networkReady
This commit is contained in:
parent
4e13f44b66
commit
d90c30676a
|
@ -12,11 +12,7 @@ const CORE_MODULES = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export async function networkReady() {
|
export async function networkReady() {
|
||||||
for (const module of [
|
for (const module of [CORE_MODULES.swarm]) {
|
||||||
CORE_MODULES.peerDiscoveryRegistry,
|
|
||||||
CORE_MODULES.ircPeerDiscovery,
|
|
||||||
CORE_MODULES.swarm,
|
|
||||||
]) {
|
|
||||||
if (!moduleLoaded(module)) {
|
if (!moduleLoaded(module)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue