add OpenStreamSync() method to Session interface

This commit is contained in:
Marten Seemann
2017-02-20 15:49:32 +07:00
parent 9c46ee6b24
commit 592ef45fdf
5 changed files with 18 additions and 2 deletions

View File

@@ -38,6 +38,9 @@ func (s *mockSession) AcceptStream() (utils.Stream, error) {
func (s *mockSession) OpenStream() (utils.Stream, error) {
panic("not implemented")
}
func (s *mockSession) OpenStreamSync() (utils.Stream, error) {
panic("not implemented")
}
func (s *mockSession) Close(e error) error {
s.closed = true
s.closedWithError = e