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 {
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) ) ) )
Original file line number Diff line number Diff 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments