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

Update yamux to development version. #1297

Merged
merged 2 commits into from
Nov 15, 2019

Conversation

twittner
Copy link
Contributor

@twittner twittner commented Nov 6, 2019

This PR uses the Yamux development version which is based on futures-preview 0.3.0-alpha.19. Since we use a boxed version of the incoming futures::stream::Stream of substreams, we offer two sets of upgrades, one which requires a Send bound on the underlying I/O resource, and one which does not. If memory serves me well, we have some upgrades such as secio whose output is !Send. If we do not plan to support !Send, we can of course remove half of this PR.

For the boxed `futures::stream::Stream` we have to decide if we require
a `Send` bound or not. Since some upgrades may produce outputs which are
`!Send` we offer both upgrade versions.
@twittner twittner merged commit 2015053 into libp2p:stable-futures Nov 15, 2019
@twittner twittner deleted the future-yamux branch November 15, 2019 11:50
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.

None yet

3 participants