mirror of
https://github.com/libp2p/go-libp2p.git
synced 2025-10-23 16:13:23 +08:00
make new stream calls accept a context
This commit is contained in:
@@ -32,7 +32,7 @@ func TestHostSimple(t *testing.T) {
|
||||
io.Copy(w, s) // mirror everything
|
||||
})
|
||||
|
||||
s, err := h1.NewStream(protocol.TestingID, h2pi.ID)
|
||||
s, err := h1.NewStream(ctx, protocol.TestingID, h2pi.ID)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user