replace the RWMutex with a Mutex in the flow controller

This commit is contained in:
Marten Seemann
2020-11-07 10:12:46 +07:00
parent 272229abf0
commit 3a06c188f6

View File

@@ -15,7 +15,7 @@ type baseFlowController struct {
lastBlockedAt protocol.ByteCount
// for receiving data
mutex sync.RWMutex
mutex sync.Mutex
bytesRead protocol.ByteCount
highestReceived protocol.ByteCount
receiveWindow protocol.ByteCount