forked from quic-go/quic-go
implement closing the quic client with an error
This commit is contained in:
@@ -16,7 +16,7 @@ import (
|
||||
|
||||
type quicClient interface {
|
||||
OpenStream(protocol.StreamID) (utils.Stream, error)
|
||||
Close() error
|
||||
Close(error) error
|
||||
Listen() error
|
||||
}
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ type mockQuicClient struct {
|
||||
streams map[protocol.StreamID]*mockStream
|
||||
}
|
||||
|
||||
func (m *mockQuicClient) Close() error { panic("not implemented") }
|
||||
func (m *mockQuicClient) Listen() error { panic("not implemented") }
|
||||
func (m *mockQuicClient) Close(error) error { panic("not implemented") }
|
||||
func (m *mockQuicClient) Listen() error { panic("not implemented") }
|
||||
func (m *mockQuicClient) OpenStream(id protocol.StreamID) (utils.Stream, error) {
|
||||
_, ok := m.streams[id]
|
||||
if ok {
|
||||
|
||||
Reference in New Issue
Block a user