-
Notifications
You must be signed in to change notification settings - Fork 274
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 to Tokio 1.0 #628
Update to Tokio 1.0 #628
Conversation
just needs to fix CI build errors |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, one question about the server feature
for the http client
Added some more commits since the last review. Can I get a final rubber-stamp before merging this? |
futures::pin_mut!(sleep); | ||
match sleep.poll(cx) { | ||
Poll::Pending => return Poll::Pending, | ||
Poll::Ready(()) => {} | ||
Poll::Ready(()) => { | ||
self.suspended_until = None; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we're ready then let's reset the suspension flag not to execute that code path everytime
Thanks for the reviews! Would it be possible to release new versions of the crates somewhat soon that contain this PR? |
I guess we should bump the version first. I guess 18.x ? |
Yep, sounds good. I'll prepare a bump PR if that's okay |
Bump to Tokio 1.0 Closes #1695 Closes #1693 Just enabled by tokio-rs/tokio#3388. Work in progress to prune winapi 0.2, still needs patches upstreamed that migrate `parity-tokio-ipc` and `jsonrpc-*` crates to Tokio 1.0. Let's see what CI has to say, first. Blocked on: - [x] paritytech/parity-tokio-ipc#32 - [x] paritytech/jsonrpc#628
Needs paritytech/parity-tokio-ipc#32 (pulls a[patch.crates-io]
in the meantime).Closes #621
Primary motivation is to fix RLS build on aarch64 Windows (see rust-lang/rls#1741). Tested locally on a Windows machine, hopefully unix will be happy as well.
https://tokio.rs/blog/2020-10-tokio-0-3 might be useful when reviewing