From 561b189de13f265ebc72ce3fde62f79b41894afc Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 15 Nov 2021 18:18:29 +1100 Subject: [PATCH] Remove unnecessary `Result` return value --- daemon/src/maker_inc_connections.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/daemon/src/maker_inc_connections.rs b/daemon/src/maker_inc_connections.rs index 1b299f3..3dbb69b 100644 --- a/daemon/src/maker_inc_connections.rs +++ b/daemon/src/maker_inc_connections.rs @@ -158,14 +158,12 @@ impl Actor { #[xtra_productivity] impl Actor { - async fn handle_broadcast_order(&mut self, msg: BroadcastOrder) -> Result<()> { + async fn handle_broadcast_order(&mut self, msg: BroadcastOrder) { let order = msg.0; for taker_id in self.write_connections.clone().keys() { self.send_to_taker(taker_id, wire::MakerToTaker::CurrentOrder(order.clone())).await.expect("send_to_taker only fails on missing hashmap entry and we are iterating over those entries"); tracing::trace!(%taker_id, "sent new order: {:?}", order.as_ref().map(|o| o.id)); } - - Ok(()) } async fn handle_taker_message(&mut self, msg: TakerMessage) -> Result<()> {