diff --git a/daemon/src/maker_cfd.rs b/daemon/src/maker_cfd.rs index 0271584..f1319f2 100644 --- a/daemon/src/maker_cfd.rs +++ b/daemon/src/maker_cfd.rs @@ -993,12 +993,12 @@ where } } -#[async_trait] -impl Handler for Actor +#[xtra_productivity] +impl Actor where T: xtra::Handler, { - async fn handle(&mut self, msg: NewOrder, _ctx: &mut Context) -> Result<()> { + async fn handle_new_order(&mut self, msg: NewOrder) -> Result<()> { let NewOrder { price, min_quantity, @@ -1166,10 +1166,6 @@ where } } -impl Message for NewOrder { - type Result = Result<()>; -} - impl Message for TakerConnected { type Result = (); }