convert Stream interface to a struct (#5149)

This commit is contained in:
Marten Seemann
2025-06-01 11:40:05 +08:00
committed by GitHub
parent 7ca7a973ef
commit eb656df2fe
25 changed files with 170 additions and 877 deletions

View File

@@ -529,7 +529,7 @@ func testClientStreamHijacking(t *testing.T, bidirectional, doHijack bool, strea
tr := &Transport{}
switch bidirectional {
case true:
tr.StreamHijacker = func(ft FrameType, id quic.ConnectionTracingID, _ quic.Stream, e error) (hijacked bool, err error) {
tr.StreamHijacker = func(ft FrameType, id quic.ConnectionTracingID, _ *quic.Stream, e error) (hijacked bool, err error) {
hijackChan <- hijackCall{ft: ft, connTracingID: id, e: e}
if !doHijack {
return false, errors.New("not hijacking")