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

Commit a3ec583

Browse files
authored
feat: increase maxListeners to Infinity
ipfs/js-ipfs-bitswap#142 (comment)
1 parent 5c9556e commit a3ec583

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ function Swarm (peerInfo, peerBook) {
2727
this._peerInfo = peerInfo
2828
this._peerBook = peerBook
2929

30+
this.setMaxListeners(Infinity)
31+
3032
// transports --
3133
// { key: transport }; e.g { tcp: <tcp> }
3234
this.transports = {}

0 commit comments

Comments
 (0)