remove unneeded function from the crypto stream interface

This commit is contained in:
Marten Seemann
2017-12-10 18:57:32 +07:00
parent 3d47284e1c
commit cd5e7ae177
10 changed files with 134 additions and 39 deletions

View File

@@ -414,7 +414,7 @@ var _ = Describe("Session", func() {
fc := mocks.NewMockStreamFlowController(mockCtrl)
offset := protocol.ByteCount(0x4321)
fc.EXPECT().UpdateSendWindow(offset)
sess.cryptoStream.(*stream).flowController = fc
sess.cryptoStream.(*cryptoStream).flowController = fc
err := sess.handleMaxStreamDataFrame(&wire.MaxStreamDataFrame{
StreamID: sess.version.CryptoStreamID(),
ByteOffset: offset,