forked from quic-go/quic-go
move streams map mutex to top of struct
This commit is contained in:
@@ -11,13 +11,14 @@ import (
|
||||
)
|
||||
|
||||
type streamsMap struct {
|
||||
mutex sync.RWMutex
|
||||
|
||||
streams map[protocol.StreamID]*stream
|
||||
openStreams []protocol.StreamID
|
||||
|
||||
highestStreamOpenedByClient protocol.StreamID
|
||||
streamsOpenedAfterLastGarbageCollect int
|
||||
|
||||
mutex sync.RWMutex
|
||||
newStream newStreamLambda
|
||||
maxNumStreams int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user