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

Implement ProtocolsHandler methods in wrappers. #1710

Merged
merged 3 commits into from
Aug 18, 2020

Conversation

twittner
Copy link
Contributor

@twittner twittner commented Aug 17, 2020

This PR forwards calls to some ProtocolsHandler methods that were previously not implemented in wrappers such as MapInEvent.

It is unclear though how this can be implemented in some handlers such as MultiHandler as the information at hand does not enable it to decide which handler to forward the call to.

NB that there is no guarantee at all that a listen_protocol call will eventually be followed by a call to either inject_fully_negotiated_inbound or inject_listener_upgrade_err.

For context see #1707.

This PR forwards calls to some ProtocolsHandler methods that were
previously not implemented in wrappers such as `MapInEvent`.

It is unclear though how this can be implemented in some handlers
such as `MultiHandler` as the information at hand does not enable
it to decide which handler to forward the call to.
swarm/src/protocols_handler/multi.rs Outdated Show resolved Hide resolved
Copy link
Member

@mxinden mxinden left a comment

Choose a reason for hiding this comment

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

Feel free to merge this to be included in #1713.

@romanb romanb merged commit 21f9447 into libp2p:master Aug 18, 2020
@mxinden
Copy link
Member

mxinden commented Aug 18, 2020

@twittner would you mind adding an entry to the swarm `CHANGELOG.md?

@romanb
Copy link
Contributor

romanb commented Aug 18, 2020

@mxinden I already did so.

@mxinden
Copy link
Member

mxinden commented Aug 18, 2020

Oh, that was fast, sorry, missed the commit. Thanks @romanb.

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.

3 participants