Open danisharora099 opened 1 week ago
This is a change request
https://github.com/waku-org/js-waku/blob/4db508b962736426f4897995a2b525c82fe0ba37/packages/core/src/lib/base_protocol.ts#L79 numPeers takes in 0 as the value if all peers are to be returned. This is unintuitive to correlate 0 with all peers
numPeers
0
Using Infinity instead of 0 would be more intuitive
Infinity
This is a change request
Problem
https://github.com/waku-org/js-waku/blob/4db508b962736426f4897995a2b525c82fe0ba37/packages/core/src/lib/base_protocol.ts#L79
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