Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

fix: dont use peerinfo distinct #334

Merged
merged 4 commits into from
Apr 16, 2019
Merged

fix: dont use peerinfo distinct #334

merged 4 commits into from
Apr 16, 2019

Conversation

jacobheun
Copy link
Contributor

replaces libp2p/js-peer-info#78

This is a workaround, as noted in the code comments, until https://github.com/libp2p/interface-transport/issues/41 is completed and we can allow transports to do their own unique filtering.

This removes our dependency on the PeerInfo.multiaddrs.distinct() method, which is a patch for this same issue. This attempts to improve on the logic there by being more specific about port uniqueness, which should also allow us to implement multiple port 0 listens, #227.

src/utils.js Outdated Show resolved Hide resolved
Copy link
Member

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jacobheun jacobheun merged commit 9af0e3a into master Apr 16, 2019
@jacobheun jacobheun deleted the fix/distinct branch April 16, 2019 10:43
@ghost ghost removed the in progress label Apr 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants