Skip to content

Commit fc78491

Browse files
committed
chore(dependencies): update to newer h2
1 parent 2d525aa commit fc78491

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/body/body.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ impl Body {
272272
},
273273
Kind::H2 {
274274
recv: ref mut h2, ..
275-
} => match ready!(Pin::new(&mut *h2).poll_next(cx)) {
275+
} => match ready!(h2.poll_data(cx)) {
276276
Some(Ok(bytes)) => {
277277
let _ = h2.release_capacity().release_capacity(bytes.len());
278278
Poll::Ready(Some(Ok(Chunk::from(bytes))))

src/proto/h2/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ where
169169
}
170170

171171
// When the service is ready, accepts an incoming request.
172-
match ready!(Pin::new(&mut self.conn).poll_next(cx)) {
172+
match ready!(self.conn.poll_accept(cx)) {
173173
Some(Ok((req, respond))) => {
174174
trace!("incoming request");
175175
let content_length = content_length_parse_all(req.headers());

0 commit comments

Comments
 (0)