forked from quic-go/quic-go
more explicit tests for counting the number of streams in StreamsMap
This commit is contained in:
@@ -69,6 +69,7 @@ func (m *streamsMap) RemoveStream(id protocol.StreamID) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// NumberOfStreams gets the number of open streams
|
||||
func (m *streamsMap) NumberOfStreams() int {
|
||||
m.mutex.RLock()
|
||||
defer m.mutex.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user