File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ impl Body {
272
272
} ,
273
273
Kind :: H2 {
274
274
recv : ref mut h2, ..
275
- } => match ready ! ( Pin :: new ( & mut * h2 ) . poll_next ( cx) ) {
275
+ } => match ready ! ( h2 . poll_data ( cx) ) {
276
276
Some ( Ok ( bytes) ) => {
277
277
let _ = h2. release_capacity ( ) . release_capacity ( bytes. len ( ) ) ;
278
278
Poll :: Ready ( Some ( Ok ( Chunk :: from ( bytes) ) ) )
Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ where
169
169
}
170
170
171
171
// 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) ) {
173
173
Some ( Ok ( ( req, respond) ) ) => {
174
174
trace ! ( "incoming request" ) ;
175
175
let content_length = content_length_parse_all ( req. headers ( ) ) ;
You can’t perform that action at this time.
0 commit comments