*Mixed up code

This commit is contained in:
Derrick Hammer 2023-02-17 20:06:46 -05:00
parent 1ba371fb1c
commit 4977f88d55
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 3 deletions

View File

@ -8,8 +8,6 @@ import type { EventEmitter } from "eventemitter3";
// @ts-ignore
import Backoff from "backoff.js";
const PROTOCOL = "lumeweb.proxy.handshake";
export class SwarmClient extends Client {
private useDefaultSwarm: boolean;
private id: number = 0;
@ -108,7 +106,7 @@ export class SwarmClient extends Client {
public async join(topic: Buffer | Uint8Array | string): Promise<void> {
if (typeof topic === "string") {
topic = blake2b(PROTOCOL);
topic = blake2b(topic);
}
this._topics.add(topic);