move streams map mutex to top of struct

This commit is contained in:
Lucas Clemente
2016-10-13 09:13:06 +01:00
parent a46651e502
commit a919eead0b

View File

@@ -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