use FlowControlManager in Stream for Reading data

This commit is contained in:
Marten Seemann
2016-06-15 19:39:50 +07:00
parent 800320ec39
commit 5d02033f0f
6 changed files with 110 additions and 128 deletions

View File

@@ -161,10 +161,3 @@ func (c *flowController) CheckFlowControlViolation() bool {
}
return false
}
func (c *flowController) GetHighestReceived() protocol.ByteCount {
c.mutex.RLock()
defer c.mutex.RUnlock()
return c.highestReceived
}