From f08c87c1845b7561c9aea1f7c21cf1f5528f92b7 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 8 Jul 2023 00:58:40 -0400 Subject: [PATCH] fix: await swarm.join --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 78846cf..78ff260 100644 --- a/src/index.ts +++ b/src/index.ts @@ -148,7 +148,7 @@ async function handlePresentKey(aq: ActiveQuery) { peerConnected.resolve(); }); - swarm.join(PROTOCOL); + await swarm.join(PROTOCOL); await swarm.start(); await peerConnected.promise;