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 Apr 2, 2024
1 parent 42c3b8f commit 2511ced
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 @@ -105,7 +105,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 2511ced

Please sign in to comment.