Fix tests & bug introduced in previous commit

This commit is contained in:
Carl Lerche
2017-08-24 16:48:01 -07:00
parent b0e6867877
commit c0433e8831
3 changed files with 5 additions and 5 deletions

View File

@@ -48,7 +48,7 @@ impl FlowControl {
}
pub fn assign_capacity(&mut self, capacity: WindowSize) {
self.available + capacity;
self.available += capacity;
}
/// Returns the number of bytes available but not assigned to the window.