set the version in the stream constructor (#1362)

set the version in the stream constructor
This commit is contained in:
790715083 2018-05-18 10:12:31 +08:00 committed by Marten Seemann
parent 407a563c73
commit fd906aeb24

View file

@ -100,7 +100,7 @@ func newStream(streamID protocol.StreamID,
flowController flowcontrol.StreamFlowController,
version protocol.VersionNumber,
) *stream {
s := &stream{sender: sender}
s := &stream{sender: sender, version: version}
senderForSendStream := &uniStreamSender{
streamSender: sender,
onStreamCompletedImpl: func() {