Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

add a helper function to go directly from a string to an AddrInfo #184

Merged
merged 2 commits into from
Feb 22, 2021

Conversation

whyrusleeping
Copy link
Contributor

No description provided.

peer/addrinfo.go Show resolved Hide resolved
@@ -61,6 +62,15 @@ func SplitAddr(m ma.Multiaddr) (transport ma.Multiaddr, id ID) {
return transport, id
}

func AddrInfoFromString(s string) (*AddrInfo, error) {
Copy link
Member

Choose a reason for hiding this comment

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

You sure you don't want AddrInfosFromStrings?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

idk, this seems good enough for now? im happy with whatever

@whyrusleeping whyrusleeping merged commit 11f3c3a into master Feb 22, 2021
@whyrusleeping whyrusleeping deleted the feat/helper-func branch February 22, 2021 17:55
@aschmahmann aschmahmann mentioned this pull request Aug 23, 2021
62 tasks
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