Data frame (#50)

* Rename DataFlag -> DataFlags
* Polish Data frame API
This commit is contained in:
Carl Lerche
2017-09-05 10:00:05 -07:00
committed by GitHub
parent bbcfffee46
commit b4fa5134f9
5 changed files with 121 additions and 74 deletions

View File

@@ -362,7 +362,7 @@ impl<B, P> Prioritize<B, P>
let mut stream = store.resolve(key);
if eos {
frame.set_end_stream();
frame.set_end_stream(true);
}
self.push_back_frame(frame.into(), &mut stream);
@@ -470,7 +470,7 @@ impl<B, P> Prioritize<B, P>
let eos = frame.is_end_stream();
if frame.payload().remaining() > len {
frame.unset_end_stream();
frame.set_end_stream(false);
}
Frame::Data(frame.map(|buf| {