Revert "*Explicitly define protocol as a bag option"

This reverts commit cea5ba5131.
This commit is contained in:
Derrick Hammer 2022-11-16 12:13:00 -05:00
parent b02a7f5a2c
commit 73846a5eda
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 7 deletions

View File

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