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:
Marten Seemann
2020-11-11 10:45:11 +07:00
committed by GitHub

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