Skip to content

Commit

Permalink
fix(network): ignore error on stream read
Browse files Browse the repository at this point in the history
  • Loading branch information
themantre committed Oct 3, 2024
1 parent 481017b commit 28c5d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (s *streamService) SendRequest(msg []byte, pid lp2peer.ID) (lp2pnetwork.Str
go func() {
// We need only one byte to read the EOF.
buf := make([]byte, 1)
_, err = stream.Read(buf)
_, _ = stream.Read(buf)
closed <- true
}()

Expand Down

0 comments on commit 28c5d0a

Please sign in to comment.