Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 77bf1ab

Browse files
authored
feat: increase maxListeners to Infinity (#226)
* feat: increase maxListeners to Infinity ipfs/js-ipfs-bitswap#142 (comment) * fix linting
1 parent 5c9556e commit 77bf1ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ function Swarm (peerInfo, peerBook) {
2727
this._peerInfo = peerInfo
2828
this._peerBook = peerBook
2929

30+
this.setMaxListeners(Infinity)
3031
// transports --
3132
// { key: transport }; e.g { tcp: <tcp> }
3233
this.transports = {}

0 commit comments

Comments
 (0)