add a context to Session.Accept{Uni}Stream

This commit is contained in:
Marten Seemann
2019-05-28 17:32:18 +01:00
parent f74082b2fb
commit 5550ba2c3b
28 changed files with 140 additions and 105 deletions

View File

@@ -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)
}