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() {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue