Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

feat: p2p addrs situation #14

Merged
merged 5 commits into from
Sep 3, 2017
Merged

feat: p2p addrs situation #14

merged 5 commits into from
Sep 3, 2017

Conversation

daviddias
Copy link
Member

@daviddias daviddias added the status/in-progress In progress label Sep 3, 2017

function cleanMultiaddr (ma) {
return ma.decapsulate('/p2p-webrtc-direct')
}
Copy link
Member Author

@daviddias daviddias Sep 3, 2017

Choose a reason for hiding this comment

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

This went from a very complicated:

function cleanMultiaddr (ma) {		
  return multiaddr(ma.toString().split('/').slice(2).join('/'))		
}

To the code in the PR. Who would know that using multiaddrs as they are designed to be used would simplify things :)

//cc @lgierth

@daviddias daviddias merged commit f5f8a21 into master Sep 3, 2017
@daviddias daviddias deleted the feat/p2p-addrs-situation branch September 3, 2017 09:37
@daviddias daviddias removed the status/in-progress In progress label Sep 3, 2017
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.

1 participant