make new stream calls accept a context

This commit is contained in:
Jeromy
2015-11-19 16:20:59 -08:00
parent 9d40a0af19
commit dafa3bf917
15 changed files with 47 additions and 35 deletions

View File

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