@ -384,18 +384,16 @@ where
}
}
}
}
#[ xtra_productivity ]
impl < O , M , W > Actor < O , M , W >
impl < O , M , W > Actor < O , M , W >
where
where
Self : xtra ::Handler < Completed > ,
Self : xtra ::Handler < Completed > ,
O : xtra ::Handler < oracle ::GetAnnouncement > + xtra ::Handler < oracle ::MonitorAttestation > ,
O : xtra ::Handler < oracle ::GetAnnouncement > + xtra ::Handler < oracle ::MonitorAttestation > ,
W : xtra ::Handler < wallet ::BuildPartyParams > + xtra ::Handler < wallet ::Sign > ,
W : xtra ::Handler < wallet ::BuildPartyParams > + xtra ::Handler < wallet ::Sign > ,
{
{
async fn handle_take_offer (
async fn handle_take_offer ( & mut self , msg : TakeOffer , ctx : & mut Context < Self > ) -> Result < ( ) > {
& mut self ,
let TakeOffer { order_id , quantity } = msg ;
order_id : OrderId ,
quantity : Usd ,
ctx : & mut Context < Self > ,
) -> Result < ( ) > {
let disconnected = self
let disconnected = self
. setup_actors
. setup_actors
. get_disconnected ( order_id )
. get_disconnected ( order_id )
@ -627,19 +625,6 @@ where
}
}
}
}
#[ async_trait ]
impl < O : 'static , M : 'static , W : 'static > Handler < TakeOffer > for Actor < O , M , W >
where
Self : xtra ::Handler < Completed > ,
O : xtra ::Handler < oracle ::GetAnnouncement > + xtra ::Handler < oracle ::MonitorAttestation > ,
W : xtra ::Handler < wallet ::BuildPartyParams > + xtra ::Handler < wallet ::Sign > ,
{
async fn handle ( & mut self , msg : TakeOffer , ctx : & mut Context < Self > ) -> Result < ( ) > {
self . handle_take_offer ( msg . order_id , msg . quantity , ctx )
. await
}
}
#[ async_trait ]
#[ async_trait ]
impl < O : 'static , M : 'static , W : 'static > Handler < wire ::MakerToTaker > for Actor < O , M , W >
impl < O : 'static , M : 'static , W : 'static > Handler < wire ::MakerToTaker > for Actor < O , M , W >
where
where
@ -732,10 +717,6 @@ impl<O: 'static, M: 'static, W: 'static> Handler<setup_taker::Started> for Actor
}
}
}
}
impl Message for TakeOffer {
type Result = Result < ( ) > ;
}
impl Message for CfdRollOverCompleted {
impl Message for CfdRollOverCompleted {
type Result = ( ) ;
type Result = ( ) ;
}
}