Browse Source

Merge #692

692: Use xtra_productivity for maker_cfd::NewOrder r=thomaseizinger a=thomaseizinger



Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
debug-collab-settlement
bors[bot] 3 years ago
committed by GitHub
parent
commit
32bcb42c00
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      daemon/src/maker_cfd.rs

10
daemon/src/maker_cfd.rs

@ -994,12 +994,12 @@ where
}
}
#[async_trait]
impl<O: 'static, M: 'static, T: 'static, W: 'static> Handler<NewOrder> for Actor<O, M, T, W>
#[xtra_productivity]
impl<O, M, T, W> Actor<O, M, T, W>
where
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 {
price,
min_quantity,
@ -1167,10 +1167,6 @@ where
}
}
impl Message for NewOrder {
type Result = Result<()>;
}
impl Message for TakerConnected {
type Result = ();
}

Loading…
Cancel
Save