Skip to content

Commit b80ef73

Browse files
committed
fix(p2p): use CloseRead instead of stream.Close
1 parent 39232eb commit b80ef73

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
@@ -103,7 +103,7 @@ func sendMessage(
103103
}
104104

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

0 commit comments

Comments
 (0)