Revert "*Update bag structure"

This reverts commit e446466c2a.
This commit is contained in:
Derrick Hammer 2022-11-16 12:12:52 -05:00
parent e18055e606
commit 3b87e81c12
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,5 @@
import DHTOnlineBase from "./dhtOnlineBase.js";
import DHTFlood from "@lumeweb/dht-flood";
import * as stream from "stream";
const DISCONNECT_SMOOTH = 500;
@ -10,9 +9,12 @@ export default class DHTOnline extends DHTOnlineBase {
constructor(
swarm: any,
{ id = swarm.keyPair.publicKey, data = {}, protocol, ...opts } = {
protocol: undefined,
}
{
id = swarm.keyPair.publicKey,
data = {},
protocol = undefined,
...opts
} = {}
) {
super(id, opts);
this.flood = new DHTFlood({ id, swarm, protocol, ...opts });