forked from quic-go/quic-go
Merge pull request #2865 from lucas-clemente/flow-control-replace-rwmutex
replace the RWMutex with a Mutex in the flow controller
This commit is contained in:
@@ -15,7 +15,7 @@ type baseFlowController struct {
|
|||||||
lastBlockedAt protocol.ByteCount
|
lastBlockedAt protocol.ByteCount
|
||||||
|
|
||||||
// for receiving data
|
// for receiving data
|
||||||
mutex sync.RWMutex
|
mutex sync.Mutex
|
||||||
bytesRead protocol.ByteCount
|
bytesRead protocol.ByteCount
|
||||||
highestReceived protocol.ByteCount
|
highestReceived protocol.ByteCount
|
||||||
receiveWindow protocol.ByteCount
|
receiveWindow protocol.ByteCount
|
||||||
|
|||||||
Reference in New Issue
Block a user