Skip to content

Commit

Permalink
chore: fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Apr 9, 2024
1 parent 4ca7597 commit e3d3f58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/bitswap/src/want-list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { TypedEventEmitter } from '@libp2p/interface'
import { TypedEventEmitter, setMaxListeners } from '@libp2p/interface'
import { trackedPeerMap, PeerSet } from '@libp2p/peer-collections'
import { trackedMap } from '@libp2p/utils/tracked-map'
import all from 'it-all'
Expand Down Expand Up @@ -121,6 +121,7 @@ export class WantList extends TypedEventEmitter<WantListEvents> implements Start
constructor (components: WantListComponents, init: WantListInit = {}) {
super()

setMaxListeners(Infinity, this)
this.peers = trackedPeerMap({
name: 'ipfs_bitswap_peers',
metrics: components.libp2p.metrics
Expand Down

0 comments on commit e3d3f58

Please sign in to comment.