mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-06 13:47:35 +03:00
improve tests and test coverage of flow control manager
This commit is contained in:
parent
1aaf049a11
commit
84bda1a9f4
2 changed files with 98 additions and 64 deletions
|
@ -40,6 +40,7 @@ func NewFlowControlManager(connectionParameters handshake.ConnectionParametersMa
|
|||
}
|
||||
|
||||
// NewStream creates new flow controllers for a stream
|
||||
// it does nothing if the stream already exists
|
||||
func (f *flowControlManager) NewStream(streamID protocol.StreamID, contributesToConnectionFlow bool) {
|
||||
f.mutex.Lock()
|
||||
defer f.mutex.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue