We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d525aa commit fc78491Copy full SHA for fc78491
src/body/body.rs
@@ -272,7 +272,7 @@ impl Body {
272
},
273
Kind::H2 {
274
recv: ref mut h2, ..
275
- } => match ready!(Pin::new(&mut *h2).poll_next(cx)) {
+ } => match ready!(h2.poll_data(cx)) {
276
Some(Ok(bytes)) => {
277
let _ = h2.release_capacity().release_capacity(bytes.len());
278
Poll::Ready(Some(Ok(Chunk::from(bytes))))
src/proto/h2/server.rs
@@ -169,7 +169,7 @@ where
169
}
170
171
// When the service is ready, accepts an incoming request.
172
- match ready!(Pin::new(&mut self.conn).poll_next(cx)) {
+ match ready!(self.conn.poll_accept(cx)) {
173
Some(Ok((req, respond))) => {
174
trace!("incoming request");
175
let content_length = content_length_parse_all(req.headers());
0 commit comments