-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not find peer when DHT yields peers without multiaddrs
go-libp2p recently reduced the length of time it stores multiaddrs for peers in case they go out of date. This means that queries have started finding provdiers/closer peers without multiaddrs as those addreses expire. We switched to running a find peer when these addressless peers are discovered but it is incredibly expensive since a single find peer can result in multiple dials. Instead honor the peer without multiaddrs, a separate PR will be opened to allow doing the find peer at dial time if the user choses to dial the discovered peer.
- Loading branch information
1 parent
581574d
commit 49e232a
Showing
2 changed files
with
12 additions
and
521 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.