From 3b87e81c12859568085198e92362d1960185a833 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 16 Nov 2022 12:12:52 -0500 Subject: [PATCH] Revert "*Update bag structure" This reverts commit e446466c2a65d538d8a64d6e1ce0c1c812a84815. --- src/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index d9d8d40..eb11837 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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 });