Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make MultistreamMuxer and Client APIs generic #95

Merged
merged 3 commits into from
Jan 22, 2023

Conversation

sukunrt
Copy link
Member

@sukunrt sukunrt commented Jan 20, 2023

This change allows users to use their custom types instead of translating to and from string type

Related to: libp2p/go-libp2p#1886

This change allows users to use their custom types
instead of translating to and from string type
@sukunrt sukunrt marked this pull request as ready for review January 20, 2023 05:22
Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

This looks very clean. I like it!

I added a few comments.

multistream.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
client.go Outdated Show resolved Hide resolved
Other review fixes added too
@sukunrt
Copy link
Member Author

sukunrt commented Jan 20, 2023

Addressed review comments.

Copy link
Contributor

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

LGTM. Just for completeness, should NewMultistream also be made generic?

@sukunrt
Copy link
Member Author

sukunrt commented Jan 21, 2023

Agreed. I think this now covers the complete API.

@marten-seemann
Copy link
Contributor

Nice work, @sukunrt!

@marten-seemann marten-seemann merged commit 07062ee into multiformats:master Jan 22, 2023
This was referenced Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants