Skip to content

Commit

Permalink
Merge pull request #23 from libp2p/update-mplex
Browse files Browse the repository at this point in the history
update go-mplex, use the context passed to OpenStream
  • Loading branch information
marten-seemann committed Dec 19, 2020
2 parents 6c57248 + 92ae2a8 commit c04213f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/muxer/mplex/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ func (c *conn) IsClosed() bool {
}

// OpenStream creates a new stream.
func (c *conn) OpenStream(context.Context) (mux.MuxedStream, error) {
s, err := c.mplex().NewStream()
func (c *conn) OpenStream(ctx context.Context) (mux.MuxedStream, error) {
s, err := c.mplex().NewStream(ctx)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit c04213f

Please sign in to comment.