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

Protobuf and JSON (un-)marshalling methods for peer.ID #41

Merged
merged 3 commits into from
Dec 12, 2018

Conversation

raulk
Copy link
Member

@raulk raulk commented Dec 12, 2018

peer_serde.go Outdated
import (
"encoding/json"

"github.com/golang/protobuf/proto"
Copy link
Member

Choose a reason for hiding this comment

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

This pulls protobuf into quite a few deps. Given that it's only for a type assertion, I'd rather just leave it out for now.

Once we merge all the "core" deps into a single package, we can do stuff like this without complicating our lives quite as much.


If you think we should keep it, we'll have to add it to the package.json.

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 SGTM, will comment out the assertions to keep them as docs.

@Stebalien Stebalien merged commit f5c52ce into libp2p:master Dec 12, 2018
@ghost ghost removed the in progress label Dec 12, 2018
@raulk raulk deleted the feat/serde branch December 12, 2018 22:07
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.

2 participants