From 73846a5edac9d04697f623a317b085cef42a9423 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 12:13:00 -0500 Subject: [PATCH] Revert "*Explicitly define protocol as a bag option" This reverts commit cea5ba513119a1df2d295f5ac2be6b3db73e66ab. --- src/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/index.ts b/src/index.ts index eb11837..0c8a0de 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,15 +9,10 @@ export default class DHTOnline extends DHTOnlineBase { constructor( swarm: any, - { - id = swarm.keyPair.publicKey, - data = {}, - protocol = undefined, - ...opts - } = {} + { id = swarm.keyPair.publicKey, data = {}, ...opts } = {} ) { super(id, opts); - this.flood = new DHTFlood({ id, swarm, protocol, ...opts }); + this.flood = new DHTFlood({ id, swarm, ...opts }); this.swarm = swarm; this.flood.on("peer-open", (peer) => this.handlePeerAdd(peer));