use StreamsMap in Session and StreamFramer

fixes #208
This commit is contained in:
Marten Seemann
2016-08-05 19:30:28 +07:00
parent 0cc42b8847
commit a796877b94
5 changed files with 136 additions and 100 deletions

View File

@@ -2,7 +2,6 @@ package quic
import (
"bytes"
"sync"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/handshake"
@@ -24,7 +23,7 @@ var _ = Describe("Packet packer", func() {
fcm.sendWindowSizes[5] = protocol.MaxByteCount
fcm.sendWindowSizes[7] = protocol.MaxByteCount
streamFramer = newStreamFramer(&map[protocol.StreamID]*stream{}, &sync.RWMutex{}, fcm)
streamFramer = newStreamFramer(newStreamsMap(), fcm)
packer = &packetPacker{
cryptoSetup: &handshake.CryptoSetup{},