Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Routed host searches for new addrs issue libp2p#351
If there were addresses available for a given peer, and they did not work, an err would be returned. This doesn't make sense as there should be an attempt to find new addresses through the router before determining that a connection cannot be made. Now the router is searched if a connection with the current addresses cannot be made. If the router had already been searched(This happens if no addresses were present in the peerinfo) then we do not search repeat the search as it doesn't to search the router twice within such a short timespan.
- Loading branch information