remove unused version parameter from stream constructor

This commit is contained in:
Marten Seemann 2022-12-24 12:50:31 +13:00
parent 0f352f2653
commit d972a5e8f2
3 changed files with 4 additions and 7 deletions

View file

@ -80,8 +80,6 @@ type stream struct {
sender streamSender
receiveStreamCompleted bool
sendStreamCompleted bool
version protocol.VersionNumber
}
var _ Stream = &stream{}
@ -90,9 +88,8 @@ var _ Stream = &stream{}
func newStream(streamID protocol.StreamID,
sender streamSender,
flowController flowcontrol.StreamFlowController,
version protocol.VersionNumber,
) *stream {
s := &stream{sender: sender, version: version}
s := &stream{sender: sender}
senderForSendStream := &uniStreamSender{
streamSender: sender,
onStreamCompletedImpl: func() {