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 root crate to use futures-0.3. #1315

Merged
merged 1 commit into from
Nov 22, 2019
Merged

Conversation

twittner
Copy link
Contributor

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 BandwithLogging Transport impl requires Unpin for everything. This could potentially be optimised at some point.

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.

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 df71d4a into libp2p:stable-futures Nov 22, 2019
@twittner twittner deleted the root branch November 22, 2019 13:30
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

2 participants