mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-04 04:37:36 +03:00
remove unused version parameter from streams map constructor
This commit is contained in:
parent
d972a5e8f2
commit
d4a0793b6a
3 changed files with 1 additions and 5 deletions
|
@ -530,7 +530,6 @@ func (s *connection) preSetup() {
|
|||
uint64(s.config.MaxIncomingStreams),
|
||||
uint64(s.config.MaxIncomingUniStreams),
|
||||
s.perspective,
|
||||
s.version,
|
||||
)
|
||||
s.framer = newFramer(s.streamsMap, s.version)
|
||||
s.receivedPackets = make(chan *receivedPacket, protocol.MaxConnUnprocessedPackets)
|
||||
|
|
|
@ -46,7 +46,6 @@ var errTooManyOpenStreams = errors.New("too many open streams")
|
|||
|
||||
type streamsMap struct {
|
||||
perspective protocol.Perspective
|
||||
version protocol.VersionNumber
|
||||
|
||||
maxIncomingBidiStreams uint64
|
||||
maxIncomingUniStreams uint64
|
||||
|
@ -70,7 +69,6 @@ func newStreamsMap(
|
|||
maxIncomingBidiStreams uint64,
|
||||
maxIncomingUniStreams uint64,
|
||||
perspective protocol.Perspective,
|
||||
version protocol.VersionNumber,
|
||||
) streamManager {
|
||||
m := &streamsMap{
|
||||
perspective: perspective,
|
||||
|
@ -78,7 +76,6 @@ func newStreamsMap(
|
|||
maxIncomingBidiStreams: maxIncomingBidiStreams,
|
||||
maxIncomingUniStreams: maxIncomingUniStreams,
|
||||
sender: sender,
|
||||
version: version,
|
||||
}
|
||||
m.initMaps()
|
||||
return m
|
||||
|
|
|
@ -88,7 +88,7 @@ var _ = Describe("Streams Map", func() {
|
|||
|
||||
BeforeEach(func() {
|
||||
mockSender = NewMockStreamSender(mockCtrl)
|
||||
m = newStreamsMap(mockSender, newFlowController, MaxBidiStreamNum, MaxUniStreamNum, perspective, protocol.VersionWhatever).(*streamsMap)
|
||||
m = newStreamsMap(mockSender, newFlowController, MaxBidiStreamNum, MaxUniStreamNum, perspective).(*streamsMap)
|
||||
})
|
||||
|
||||
Context("opening", func() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue