Skip to content
This repository has been archived by the owner on Sep 13, 2018. It is now read-only.

Update for changes in tokio-core/futures #74

Closed
wants to merge 5 commits into from

Conversation

alexcrichton
Copy link
Contributor

This updates tokio-proto with the changes we've been pushing through tokio-core/futures. Primarily the FramedIo trait in tokio-core was deprecated, leading do the deletion of the Transport traits in tokio-proto with the replacement of Sink + Stream.

All various bits and pieces have been updated and plumbed together to get this to work out, and the tests should be passing at least sometimes (they're still sorta flaky)

@@ -24,34 +24,34 @@ pub struct Client<R1, R2, B1, B2, E>
where B1: Stream<Error = E>,
E: From<Error<E>>,
{
tx: RefCell<Sender<Envelope<R1, R2, B1, B2, E>, io::Error>>,
tx: RefCell<spsc::Sender<Envelope<R1, R2, B1, B2, E>, io::Error>>,
Copy link
Contributor

Choose a reason for hiding this comment

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

spsc<T,E> is now mpsc<T>

@@ -23,7 +23,7 @@
use std::io;
Copy link
Contributor

@Hoverbear Hoverbear Nov 23, 2016

Choose a reason for hiding this comment

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

This files documentation still talks about FramedIo despite it being removed.

@alexcrichton
Copy link
Contributor Author

Oh I'm going to close this in favor of #75, and will soon push commits to fix tests there too.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants