pass the version to the receiveStream constructor

This commit is contained in:
Marten Seemann 2018-02-02 14:55:22 +08:00
parent d0a394430f
commit 5d45bb046b
3 changed files with 9 additions and 3 deletions

View file

@ -55,6 +55,7 @@ func newReceiveStream(
streamID protocol.StreamID,
sender streamSender,
flowController flowcontrol.StreamFlowController,
version protocol.VersionNumber,
) *receiveStream {
return &receiveStream{
streamID: streamID,
@ -62,6 +63,7 @@ func newReceiveStream(
flowController: flowController,
frameQueue: newStreamFrameSorter(),
readChan: make(chan struct{}, 1),
version: version,
}
}