Use FlowControl::available to size data frames (#29)

This commit is contained in:
Carl Lerche
2017-08-23 20:34:58 -07:00
committed by GitHub
parent f839443ece
commit 7e8c7fd2b8
4 changed files with 81 additions and 16 deletions

View File

@@ -117,7 +117,7 @@ impl<T> fmt::Debug for Frame<T> {
use self::Frame::*;
match *self {
Data(..) => write!(fmt, "Frame::Data(..)"),
Data(ref frame) => write!(fmt, "Frame::Data({:?})", frame),
Headers(ref frame) => write!(fmt, "Frame::Headers({:?})", frame),
Priority(ref frame) => write!(fmt, "Frame::Priority({:?})", frame),
PushPromise(ref frame) => write!(fmt, "Frame::PushPromise({:?})", frame),