Browse Source

Use xtra_productivity for maker_cfd::NewOrder

debug-collab-settlement
Thomas Eizinger 3 years ago
parent
commit
47ac726729
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 10
      daemon/src/maker_cfd.rs

10
daemon/src/maker_cfd.rs

@ -993,12 +993,12 @@ where
} }
} }
#[async_trait] #[xtra_productivity]
impl<O: 'static, M: 'static, T: 'static, W: 'static> Handler<NewOrder> for Actor<O, M, T, W> impl<O, M, T, W> Actor<O, M, T, W>
where where
T: xtra::Handler<maker_inc_connections::BroadcastOrder>, T: xtra::Handler<maker_inc_connections::BroadcastOrder>,
{ {
async fn handle(&mut self, msg: NewOrder, _ctx: &mut Context<Self>) -> Result<()> { async fn handle_new_order(&mut self, msg: NewOrder) -> Result<()> {
let NewOrder { let NewOrder {
price, price,
min_quantity, min_quantity,
@ -1166,10 +1166,6 @@ where
} }
} }
impl Message for NewOrder {
type Result = Result<()>;
}
impl Message for TakerConnected { impl Message for TakerConnected {
type Result = (); type Result = ();
} }

Loading…
Cancel
Save