Skip to content

Commit 2511ced

Browse files
committed
fix(p2p): use CloseRead instead of stream.Close
1 parent 42c3b8f commit 2511ced

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func sendMessage(
105105
}
106106

107107
if err == nil {
108-
if closeErr := stream.Close(); closeErr != nil {
108+
if closeErr := stream.CloseRead(); closeErr != nil {
109109
log.Errorw("closing stream", "err", closeErr)
110110
}
111111
} else {

0 commit comments

Comments
 (0)