libp2p / js-libp2p

The JavaScript Implementation of libp2p networking stack.
https://libp2p.io
Other
2.27k stars 435 forks source link

fix: count dht providers and abort when enough found #2470

Closed achingbrain closed 3 months ago

achingbrain commented 3 months ago

The way we were counting DHT providers was wrong, count the actual number found - this prevents queries continuing to execute after we've found K providers.

Change checklist