Skip to content

Commit

Permalink
Merge pull request #27 from libp2p/feat/update-stream-interface
Browse files Browse the repository at this point in the history
feat: update to new stream interfaces
  • Loading branch information
Stebalien authored Sep 2, 2020
2 parents 846e4ef + aa1de9a commit f47682a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions p2p/muxer/yamux/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ func (s *stream) Reset() error {
return s.yamux().Reset()
}

func (s *stream) CloseRead() error {
return s.yamux().CloseRead()
}

func (s *stream) CloseWrite() error {
return s.yamux().CloseWrite()
}

func (s *stream) SetDeadline(t time.Time) error {
return s.yamux().SetDeadline(t)
}
Expand Down

0 comments on commit f47682a

Please sign in to comment.