libp2p / js-libp2p-kad-dht

JavaScript implementation of the DHT for libp2p
https://libp2p.io
Other
140 stars 60 forks source link

fix: only choose query peers after initial self-query has run #471

Closed achingbrain closed 1 year ago

achingbrain commented 1 year ago

Previously we chose peers before the self-query ran which meant there was a reasonable chance we chose 0 peers.

Instead, wait for the query to run, then choose peers to query.

github-actions[bot] commented 1 year ago

:tada: This PR is included in version 9.1.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: