split the stream into a receive and a send stream

This commit is contained in:
Marten Seemann
2017-12-16 15:55:01 +07:00
parent c0eb12bb29
commit e926b0805a
12 changed files with 1942 additions and 1626 deletions

View File

@@ -59,7 +59,7 @@ func (s *mockSession) closeRemote(e error) {
close(s.stopRunLoop)
}
func (s *mockSession) OpenStream() (Stream, error) {
return &stream{streamID: 1337}, nil
return &stream{}, nil
}
func (s *mockSession) AcceptStream() (Stream, error) { panic("not implemented") }
func (s *mockSession) OpenStreamSync() (Stream, error) { panic("not implemented") }