remove flow control mutexes for the sending data

Receiving MAX_{STREAM}_DATA frames and sending data is all done
sequentially, so we don't need a mutex there.
This commit is contained in:
Marten Seemann
2017-12-15 19:29:44 +07:00
parent efa781b067
commit bfdeeae70c
3 changed files with 5 additions and 21 deletions

View File

@@ -34,9 +34,6 @@ func NewConnectionFlowController(
}
func (c *connectionFlowController) SendWindowSize() protocol.ByteCount {
c.mutex.RLock()
defer c.mutex.RUnlock()
return c.baseFlowController.sendWindowSize()
}