Skip to content

Use soketto's reader-writer-split branch. #1311

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

Merged
merged 3 commits into from
Nov 22, 2019

Conversation

twittner
Copy link
Contributor

@twittner twittner commented Nov 18, 2019

Updates to a soketto version that uses futures-0.3.x. Depends on paritytech/soketto#8 and paritytech/quicksink#1.

@twittner twittner force-pushed the soketto-0.3 branch 2 times, most recently from 249d387 to cd9619d Compare November 20, 2019 08:22
twittner added a commit to twittner/rust-libp2p that referenced this pull request Nov 21, 2019
Mostly mechanical. Creating a `CommonTransport` yields an
`io::Result<_>` now since creating the `DnsConfig` may fail with an
`io::Error` when creating the `ThreadPool`.

The `DnsConfig` `Transport` impl had to be changed slightly:

(a) PR [[1311]] requires some `Send` bounds.
(b) The async block had to be changed to work around lifetime inference
issues which resulted in an "one type is more general than the other"
error.

[1311]: libp2p#1311
@twittner twittner merged commit 1597b02 into libp2p:stable-futures Nov 22, 2019
@twittner twittner deleted the soketto-0.3 branch November 22, 2019 13:29
twittner added a commit that referenced this pull request Nov 22, 2019
Mostly mechanical. Creating a `CommonTransport` yields an
`io::Result<_>` now since creating the `DnsConfig` may fail with an
`io::Error` when creating the `ThreadPool`.

The `DnsConfig` `Transport` impl had to be changed slightly:

(a) PR [[1311]] requires some `Send` bounds.
(b) The async block had to be changed to work around lifetime inference
issues which resulted in an "one type is more general than the other"
error.

[1311]: #1311
santos227 pushed a commit to santos227/rustlib that referenced this pull request Jun 20, 2022
Mostly mechanical. Creating a `CommonTransport` yields an
`io::Result<_>` now since creating the `DnsConfig` may fail with an
`io::Error` when creating the `ThreadPool`.

The `DnsConfig` `Transport` impl had to be changed slightly:

(a) PR [[1311]] requires some `Send` bounds.
(b) The async block had to be changed to work around lifetime inference
issues which resulted in an "one type is more general than the other"
error.

[1311]: libp2p/rust-libp2p#1311
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