forked from quic-go/quic-go
add a context to Session.Accept{Uni}Stream
This commit is contained in:
@@ -40,7 +40,7 @@ func echoServer() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
stream, err := sess.AcceptStream()
|
||||
stream, err := sess.AcceptStream(context.Background())
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user