Skip to content

Commit

Permalink
fix(p2p): use CloseRead instead of stream.Close
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Jul 10, 2024
1 parent 39232eb commit b80ef73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func sendMessage(
}

if err == nil {
if closeErr := stream.Close(); closeErr != nil {
if closeErr := stream.CloseRead(); closeErr != nil {
log.Errorw("closing stream", "err", closeErr)
}
} else {
Expand Down

0 comments on commit b80ef73

Please sign in to comment.