Browse Source

Refresh feed after state transition after monitor event

upload-correct-windows-binary
Daniel Karzel 3 years ago
parent
commit
13814813a9
No known key found for this signature in database GPG Key ID: 30C3FC2E438ADB6E
  1. 3
      daemon/src/maker_cfd.rs
  2. 3
      daemon/src/taker_cfd.rs

3
daemon/src/maker_cfd.rs

@ -461,6 +461,9 @@ impl Actor {
insert_new_cfd_state_by_order_id(order_id, new_state.clone(), &mut conn).await?; insert_new_cfd_state_by_order_id(order_id, new_state.clone(), &mut conn).await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
// TODO: Not sure that should be done here... // TODO: Not sure that should be done here...
// Consider bubbling the refund availability up to the user, and let user trigger // Consider bubbling the refund availability up to the user, and let user trigger
// transaction publication // transaction publication

3
daemon/src/taker_cfd.rs

@ -337,6 +337,9 @@ impl Actor {
insert_new_cfd_state_by_order_id(order_id, new_state.clone(), &mut conn).await?; insert_new_cfd_state_by_order_id(order_id, new_state.clone(), &mut conn).await?;
self.cfd_feed_actor_inbox
.send(load_all_cfds(&mut conn).await?)?;
// TODO: Not sure that should be done here... // TODO: Not sure that should be done here...
// Consider bubbling the refund availability up to the user, and let user trigger // Consider bubbling the refund availability up to the user, and let user trigger
// transaction publication // transaction publication

Loading…
Cancel
Save