mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
introduce a quic.StreamError type and use it for stream cancelations
This commit is contained in:
parent
93cfef57ca
commit
90727cb41a
26 changed files with 128 additions and 114 deletions
|
@ -38,7 +38,7 @@ func (m *MockStream) EXPECT() *MockStreamMockRecorder {
|
|||
}
|
||||
|
||||
// CancelRead mocks base method.
|
||||
func (m *MockStream) CancelRead(arg0 qerr.ApplicationErrorCode) {
|
||||
func (m *MockStream) CancelRead(arg0 qerr.StreamErrorCode) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "CancelRead", arg0)
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ func (mr *MockStreamMockRecorder) CancelRead(arg0 interface{}) *gomock.Call {
|
|||
}
|
||||
|
||||
// CancelWrite mocks base method.
|
||||
func (m *MockStream) CancelWrite(arg0 qerr.ApplicationErrorCode) {
|
||||
func (m *MockStream) CancelWrite(arg0 qerr.StreamErrorCode) {
|
||||
m.ctrl.T.Helper()
|
||||
m.ctrl.Call(m, "CancelWrite", arg0)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue