This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: only dial to unconnected peers (#1914)
* fix: only dial to unconnected peers License: MIT Signed-off-by: Alan Shaw <[email protected]> * fix: update peer info before conditionally dialing When we discover a peer, we may not have the latest information from our PeerBook, such as the connected multiaddress. Doing peerBook.put handles merging this information and the new PeerInfo instance is returned. Updating the peerInfo instance, before performing a check, should make sure we have the correct information. Co-Authored-By: alanshaw <[email protected]> * refactor: share noop callback License: MIT Signed-off-by: Alan Shaw <[email protected]>
- Loading branch information