Browse Source

Migrate `do_send_async` to `send`

These handlers never fail. Nothing left to do.
pAndLAndPayout
Thomas Eizinger 3 years ago
parent
commit
dd69419c4e
No known key found for this signature in database GPG Key ID: 651AC83A6C6C8B96
  1. 10
      daemon/src/maker_cfd.rs
  2. 10
      daemon/src/taker_cfd.rs

10
daemon/src/maker_cfd.rs

@ -685,7 +685,7 @@ where
tracing::info!("Lock transaction published with txid {}", txid);
self.monitor_actor
.do_send_async(monitor::StartMonitoring {
.send(monitor::StartMonitoring {
id: order_id,
params: MonitorParams::new(
dlc,
@ -696,7 +696,7 @@ where
.await?;
self.oracle_actor
.do_send_async(oracle::MonitorAttestation {
.send(oracle::MonitorAttestation {
event_id: cfd.order.oracle_event_id,
})
.await?;
@ -757,7 +757,7 @@ where
.await??;
self.oracle_actor
.do_send_async(oracle::MonitorAttestation {
.send(oracle::MonitorAttestation {
event_id: announcement.id,
})
.await?;
@ -824,7 +824,7 @@ where
append_cfd_state(&cfd, &mut conn, &self.cfd_feed_actor_inbox).await?;
self.monitor_actor
.do_send_async(monitor::StartMonitoring {
.send(monitor::StartMonitoring {
id: order_id,
params: MonitorParams::new(
dlc,
@ -893,7 +893,7 @@ where
tracing::info!("Close transaction published with txid {}", txid);
self.monitor_actor
.do_send_async(monitor::CollaborativeSettlement {
.send(monitor::CollaborativeSettlement {
order_id,
tx: (txid, own_script_pubkey),
})

10
daemon/src/taker_cfd.rs

@ -441,7 +441,7 @@ where
tracing::info!("Lock transaction published with txid {}", txid);
self.monitor_actor
.do_send_async(monitor::StartMonitoring {
.send(monitor::StartMonitoring {
id: order_id,
params: MonitorParams::new(
dlc,
@ -452,7 +452,7 @@ where
.await?;
self.oracle_actor
.do_send_async(oracle::MonitorAttestation {
.send(oracle::MonitorAttestation {
event_id: cfd.order.oracle_event_id,
})
.await?;
@ -493,7 +493,7 @@ where
.with_context(|| format!("Announcement {} not found", cfd.order.oracle_event_id))?;
self.oracle_actor
.do_send_async(oracle::MonitorAttestation {
.send(oracle::MonitorAttestation {
event_id: offer_announcement.id,
})
.await?;
@ -618,7 +618,7 @@ where
append_cfd_state(&cfd, &mut conn, &self.cfd_feed_actor_inbox).await?;
self.monitor_actor
.do_send_async(monitor::StartMonitoring {
.send(monitor::StartMonitoring {
id: order_id,
params: MonitorParams::new(
dlc,
@ -672,7 +672,7 @@ where
self.remove_pending_proposal(&order_id)?;
self.monitor_actor
.do_send_async(monitor::CollaborativeSettlement {
.send(monitor::CollaborativeSettlement {
order_id,
tx: (tx.txid(), dlc.script_pubkey_for(Role::Taker)),
})

Loading…
Cancel
Save