More code

This commit is contained in:
Carl Lerche
2017-08-04 17:25:39 -07:00
parent fc0a7eb898
commit 1c55ad75ea
8 changed files with 139 additions and 40 deletions

View File

@@ -91,7 +91,7 @@ impl<T, P, B> Connection<T, P, B>
}
/// Advances the internal state of the connection.
pub fn poll(&mut self) -> Poll<Option<()>, ConnectionError> {
pub fn poll(&mut self) -> Poll<(), ConnectionError> {
use frame::Frame::*;
loop {
@@ -183,11 +183,9 @@ impl<T, P, B> Connection<T, P, B>
*/
}
None => {
unimplemented!();
/*
// TODO: Is this correct?
trace!("codec closed");
return Ok(Async::Ready(None));
*/
return Ok(Async::Ready(()));
}
}
}