*Replace dht references with swarm

This commit is contained in:
Derrick Hammer 2023-02-01 08:18:31 -05:00
parent d608392532
commit 4e443f4ccb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 6 deletions

View File

@ -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();
}