diff --git a/streams_map.go b/streams_map.go index aebe7c85..8b41b861 100644 --- a/streams_map.go +++ b/streams_map.go @@ -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