Browse Source

Minor rename to align `Maker` and `Taker` naming

burn-down-handle
Daniel Karzel 3 years ago
parent
commit
0ae4a26d19
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 10
      daemon/tests/happy_path.rs

10
daemon/tests/happy_path.rs

@ -157,8 +157,8 @@ struct Maker {
xtra::Address<maker_cfd::Actor<Oracle, Monitor, maker_inc_connections::Actor, Wallet>>, xtra::Address<maker_cfd::Actor<Oracle, Monitor, maker_inc_connections::Actor, Wallet>>,
order_feed: watch::Receiver<Option<Order>>, order_feed: watch::Receiver<Option<Order>>,
#[allow(dead_code)] // we need to keep the xtra::Address for refcounting #[allow(dead_code)] // we need to keep the xtra::Address for refcounting
inc_conn_addr: xtra::Address<maker_inc_connections::Actor>, inc_conn_actor_addr: xtra::Address<maker_inc_connections::Actor>,
address: SocketAddr, listen_addr: SocketAddr,
} }
impl Maker { impl Maker {
@ -202,8 +202,8 @@ impl Maker {
Self { Self {
cfd_actor_addr: maker.cfd_actor_addr, cfd_actor_addr: maker.cfd_actor_addr,
order_feed: maker.order_feed_receiver, order_feed: maker.order_feed_receiver,
inc_conn_addr: maker.inc_conn_addr, inc_conn_actor_addr: maker.inc_conn_addr,
address, listen_addr: address,
} }
} }
@ -254,7 +254,7 @@ async fn start_both() -> (Maker, Taker) {
.unwrap(); .unwrap();
let maker = Maker::start(oracle_pk).await; let maker = Maker::start(oracle_pk).await;
let taker = Taker::start(oracle_pk, maker.address).await; let taker = Taker::start(oracle_pk, maker.listen_addr).await;
(maker, taker) (maker, taker)
} }

Loading…
Cancel
Save