From eef813fd46f0b179964b6911a59861e3fbf5bfb2 Mon Sep 17 00:00:00 2001 From: Alexis Sellier Date: Fri, 12 May 2023 11:08:29 +0200 Subject: [PATCH] node: Small simplification in wire protocol --- radicle-node/src/wire/protocol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle-node/src/wire/protocol.rs b/radicle-node/src/wire/protocol.rs index dae781c3..2cb446ba 100644 --- a/radicle-node/src/wire/protocol.rs +++ b/radicle-node/src/wire/protocol.rs @@ -574,7 +574,7 @@ where log::debug!(target: "wire", "Received stream close command for id={stream} from {nid}"); if let Some(chans) = streams.unregister(&stream) { - chans.send(ChannelEvent::Close).ok(); + chans.close().ok(); } } Ok(Some(Frame {