change poll_next to poll_recv (#342)

This commit is contained in:
Mackenzie Clark 2019-09-13 12:18:13 -07:00 committed by Lucio Franco
parent 42376d484b
commit e8cef688a0
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ where
}
// Get the next request
while let Some(mut msg) = ready!(Pin::new(&mut self.rx).poll_next(cx)) {
while let Some(mut msg) = ready!(Pin::new(&mut self.rx).poll_recv(cx)) {
if msg.tx.poll_closed(cx).is_pending() {
tracing::trace!("processing new request");
return Poll::Ready(Some((msg, true)));