Wire in PushPromise

This commit is contained in:
Carl Lerche
2017-08-08 13:32:36 -07:00
parent fa66323cec
commit 314b7a1848
9 changed files with 271 additions and 100 deletions

View File

@@ -177,7 +177,7 @@ impl<P, B> Send<P, B>
let update = self.pending_window_updates.pop_front()
.and_then(|id| {
streams.find_mut(&id)
.and_then(|stream| stream.send_flow_control())
.and_then(|stream| stream.into_mut().send_flow_control())
.and_then(|flow| flow.apply_window_update())
.map(|incr| WindowUpdate::new(id, incr))
});
@@ -209,7 +209,7 @@ impl<P, B> Send<P, B>
pub fn recv_stream_window_update(&mut self,
frame: frame::WindowUpdate,
stream: &mut Stream<B>)
stream: &mut store::Ptr<B>)
-> Result<(), ConnectionError>
{
if let Some(flow) = stream.send_flow_control() {