pass RTTStats to the FlowControllers

ref #106
This commit is contained in:
Marten Seemann
2016-10-30 17:36:36 +07:00
parent c8b7246159
commit 32d89eee02
6 changed files with 24 additions and 12 deletions

View File

@@ -5,6 +5,7 @@ import (
"io"
"time"
"github.com/lucas-clemente/quic-go/congestion"
"github.com/lucas-clemente/quic-go/flowcontrol"
"github.com/lucas-clemente/quic-go/frames"
"github.com/lucas-clemente/quic-go/handshake"
@@ -110,7 +111,7 @@ var _ = Describe("Stream", func() {
onDataCalled = false
var streamID protocol.StreamID = 1337
cpm := handshake.NewConnectionParamatersManager()
flowControlManager := flowcontrol.NewFlowControlManager(cpm)
flowControlManager := flowcontrol.NewFlowControlManager(cpm, &congestion.RTTStats{})
flowControlManager.NewStream(streamID, true)
str, _ = newStream(streamID, onData, flowControlManager)
})