Skip to content

Commit

Permalink
feat: increase maxListeners to Infinity (libp2p#226)
Browse files Browse the repository at this point in the history
* feat: increase maxListeners to Infinity

ipfs/js-ipfs-bitswap#142 (comment)

* fix linting
  • Loading branch information
daviddias committed Aug 25, 2017
1 parent 5c9556e commit 77bf1ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function Swarm (peerInfo, peerBook) {
this._peerInfo = peerInfo
this._peerBook = peerBook

this.setMaxListeners(Infinity)
// transports --
// { key: transport }; e.g { tcp: <tcp> }
this.transports = {}
Expand Down

0 comments on commit 77bf1ab

Please sign in to comment.