fix: await swarm.join
This commit is contained in:
parent
769f48e36b
commit
f08c87c184
|
@ -148,7 +148,7 @@ async function handlePresentKey(aq: ActiveQuery) {
|
||||||
peerConnected.resolve();
|
peerConnected.resolve();
|
||||||
});
|
});
|
||||||
|
|
||||||
swarm.join(PROTOCOL);
|
await swarm.join(PROTOCOL);
|
||||||
await swarm.start();
|
await swarm.start();
|
||||||
|
|
||||||
await peerConnected.promise;
|
await peerConnected.promise;
|
||||||
|
|
Loading…
Reference in New Issue