From 77bf1ab63faa12dce64854e3922786cf2da85f4f Mon Sep 17 00:00:00 2001 From: David Dias Date: Fri, 25 Aug 2017 10:14:59 +0100 Subject: [PATCH] feat: increase maxListeners to Infinity (#226) * feat: increase maxListeners to Infinity https://github.com/ipfs/js-ipfs-bitswap/pull/142#discussion_r135128237 * fix linting --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 90f6110..a6d5ea3 100644 --- a/src/index.js +++ b/src/index.js @@ -27,6 +27,7 @@ function Swarm (peerInfo, peerBook) { this._peerInfo = peerInfo this._peerBook = peerBook + this.setMaxListeners(Infinity) // transports -- // { key: transport }; e.g { tcp: } this.transports = {}