chore: numPeers
in BaseProtocol.getPeers()
should not take 0 for all peers
#2055
Labels
numPeers
in BaseProtocol.getPeers()
should not take 0 for all peers
#2055
This is a change request
Problem
js-waku/packages/core/src/lib/base_protocol.ts
Line 79 in 4db508b
numPeers
takes in0
as the value if all peers are to be returned. This is unintuitive to correlate0
with all peersProposed Solutions
Using
Infinity
instead of0
would be more intuitiveNotes
The text was updated successfully, but these errors were encountered: