Browse Source
Rename variable
This piece of code is always in the scope of the maker, no need to
repeat that.
We also don't need to repeat the data type in the name.
fix-bad-api-calls
Thomas Eizinger
3 years ago
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
1 changed files with
4 additions and
4 deletions
-
daemon/src/maker_inc_connections.rs
|
@ -50,16 +50,16 @@ impl Message for NewTakerOnline { |
|
|
|
|
|
|
|
|
pub struct Actor { |
|
|
pub struct Actor { |
|
|
write_connections: HashMap<TakerId, MakerToTakerSender>, |
|
|
write_connections: HashMap<TakerId, MakerToTakerSender>, |
|
|
cfd_maker_actor_address: Address<MakerCfdActor>, |
|
|
cfd_actor: Address<MakerCfdActor>, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
impl xtra::Actor for Actor {} |
|
|
impl xtra::Actor for Actor {} |
|
|
|
|
|
|
|
|
impl Actor { |
|
|
impl Actor { |
|
|
pub fn new(cfd_maker_actor_address: Address<MakerCfdActor>) -> Self { |
|
|
pub fn new(cfd_actor: Address<MakerCfdActor>) -> Self { |
|
|
Self { |
|
|
Self { |
|
|
write_connections: HashMap::<TakerId, MakerToTakerSender>::new(), |
|
|
write_connections: HashMap::<TakerId, MakerToTakerSender>::new(), |
|
|
cfd_maker_actor_address, |
|
|
cfd_actor, |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -102,7 +102,7 @@ impl Actor { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async fn handle_new_taker_online(&mut self, msg: NewTakerOnline) -> Result<()> { |
|
|
async fn handle_new_taker_online(&mut self, msg: NewTakerOnline) -> Result<()> { |
|
|
self.cfd_maker_actor_address |
|
|
self.cfd_actor |
|
|
.do_send_async(maker_cfd_actor::NewTakerOnline { id: msg.taker_id }) |
|
|
.do_send_async(maker_cfd_actor::NewTakerOnline { id: msg.taker_id }) |
|
|
.await?; |
|
|
.await?; |
|
|
|
|
|
|
|
|