From 4e443f4ccb4f6064c82ca86d939013dad167f521 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 1 Feb 2023 08:18:31 -0500 Subject: [PATCH] *Replace dht references with swarm --- src/index.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 1abbfe1..25b2cdd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -203,9 +203,9 @@ async function handleAddRelay(aq: ActiveQuery) { return; } - const dht = await getSwarm(aq); + const swarm = await getSwarm(aq); - aq.respond(await dht.addRelay(pubkey)); + aq.respond(await swarm.addRelay(pubkey)); } async function handleRemoveRelay(aq: ActiveQuery) { @@ -216,15 +216,15 @@ async function handleRemoveRelay(aq: ActiveQuery) { return; } - const dht = await getSwarm(aq); + const swarm = await getSwarm(aq); - aq.respond(dht.removeRelay(pubkey)); + aq.respond(swarm.removeRelay(pubkey)); } async function handleClearRelays(aq: ActiveQuery) { - const dht = await getSwarm(aq); + const swarm = await getSwarm(aq); - dht.clearRelays(); + swarm.clearRelays(); aq.respond(); }