diff --git a/host/src/channel_manager.rs b/host/src/channel_manager.rs index 732f765..e950241 100644 --- a/host/src/channel_manager.rs +++ b/host/src/channel_manager.rs @@ -42,14 +42,10 @@ pub(crate) struct PacketChannel { impl PacketChannel { pub(crate) const NEW: PacketChannel = PacketChannel { chan: Channel::new() }; - pub fn try_close(&self) -> Result<(), ()> { + pub fn close(&self) -> Result<(), ()> { self.chan.try_send(None).map_err(|_| ()) } - pub async fn close(&self) { - self.chan.send(None).await; - } - pub async fn send(&self, pdu: Pdu) { self.chan.send(Some(pdu)).await; }