From 74c7422cf9cca9ef4850b36d72db28a2629d538a Mon Sep 17 00:00:00 2001 From: Vasco Santos Date: Tue, 21 Apr 2020 13:40:19 +0200 Subject: [PATCH] chore: apply suggestions from code review Co-Authored-By: Jacob Heun --- src/index.js | 1 - src/peer.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 930ac28..91bde01 100644 --- a/src/index.js +++ b/src/index.js @@ -79,7 +79,6 @@ class PubsubBaseProtocol extends EventEmitter { this.log.err = debug(`${debugName}:error`) this.multicodecs = utils.ensureArray(multicodecs) - this.signMessages = peerId this.registrar = registrar this.started = false diff --git a/src/peer.js b/src/peer.js index aa016b3..2e76431 100644 --- a/src/peer.js +++ b/src/peer.js @@ -16,7 +16,7 @@ class Peer extends EventEmitter { * @param {PeerId} id * @param {Array} protocols */ - constructor (id, protocols) { + constructor ({ id, protocols }) { super() /**