Skip to content

Commit

Permalink
update go-yamux
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Mar 3, 2020
1 parent 3416b29 commit 846e4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/muxer/yamux/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type stream yamux.Stream

func (s *stream) Read(b []byte) (n int, err error) {
n, err = s.yamux().Read(b)
if err == yamux.ErrConnectionReset {
if err == yamux.ErrStreamReset {
err = mux.ErrReset
}

Expand All @@ -21,7 +21,7 @@ func (s *stream) Read(b []byte) (n int, err error) {

func (s *stream) Write(b []byte) (n int, err error) {
n, err = s.yamux().Write(b)
if err == yamux.ErrConnectionReset {
if err == yamux.ErrStreamReset {
err = mux.ErrReset
}

Expand Down

0 comments on commit 846e4ef

Please sign in to comment.