From ca36e0b8f4c562de9ecf0e0814b2c177588ca521 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Mon, 15 Nov 2021 18:33:57 +1100 Subject: [PATCH] Migrate `do_send_async` to `send` We cleaned up our internal state already, hence we can bubble up the error here. --- daemon/src/maker_cfd.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/src/maker_cfd.rs b/daemon/src/maker_cfd.rs index a90edd5..cbb175d 100644 --- a/daemon/src/maker_cfd.rs +++ b/daemon/src/maker_cfd.rs @@ -533,11 +533,11 @@ where append_cfd_state(&cfd, &mut conn, &self.cfd_feed_actor_inbox).await?; self.takers - .do_send_async(maker_inc_connections::TakerMessage { + .send(maker_inc_connections::TakerMessage { taker_id, command: TakerCommand::NotifyOrderRejected { id: cfd.order.id }, }) - .await?; + .await??; Ok(()) }