Browse Source

Missing CFD feed updates

temporary-fast-timelocks
Daniel Karzel 3 years ago
parent
commit
d6aed063fc
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 5
      daemon/src/maker_cfd.rs
  2. 5
      daemon/src/taker_cfd.rs

5
daemon/src/maker_cfd.rs

@ -836,6 +836,8 @@ impl Actor {
}
insert_new_cfd_state_by_order_id(cfd.order.id, cfd.state.clone(), &mut conn).await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
if let Err(e) = self.try_cet_publication(cfd).await {
tracing::error!("Error when trying to publish CET: {:#}", e);
@ -861,6 +863,9 @@ impl Actor {
insert_new_cfd_state_by_order_id(cfd.order.id, cfd.state.clone(), &mut conn)
.await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
}
Err(not_ready_yet) => {
tracing::debug!("{:#}", not_ready_yet);

5
daemon/src/taker_cfd.rs

@ -616,6 +616,8 @@ impl Actor {
}
insert_new_cfd_state_by_order_id(cfd.order.id, cfd.state.clone(), &mut conn).await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
if let Err(e) = self.try_cet_publication(cfd).await {
tracing::error!("Error when trying to publish CET: {:#}", e);
@ -641,6 +643,9 @@ impl Actor {
insert_new_cfd_state_by_order_id(cfd.order.id, cfd.state.clone(), &mut conn)
.await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
}
Err(not_ready_yet) => {
tracing::debug!("{:#}", not_ready_yet);

Loading…
Cancel
Save