From 4d33083af795a1a40cf52bacf0a5c772c0548c83 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Thu, 23 Sep 2021 16:28:25 +1000 Subject: [PATCH] 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. --- daemon/src/maker_inc_connections.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/daemon/src/maker_inc_connections.rs b/daemon/src/maker_inc_connections.rs index 334334c..3cbf5a2 100644 --- a/daemon/src/maker_inc_connections.rs +++ b/daemon/src/maker_inc_connections.rs @@ -50,16 +50,16 @@ impl Message for NewTakerOnline { pub struct Actor { write_connections: HashMap, - cfd_maker_actor_address: Address, + cfd_actor: Address, } impl xtra::Actor for Actor {} impl Actor { - pub fn new(cfd_maker_actor_address: Address) -> Self { + pub fn new(cfd_actor: Address) -> Self { Self { write_connections: HashMap::::new(), - cfd_maker_actor_address, + cfd_actor, } } @@ -102,7 +102,7 @@ impl Actor { } 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 }) .await?;