Browse Source
Refresh feed after state transition after monitor event
upload-correct-windows-binary
Daniel Karzel
3 years ago
No known key found for this signature in database
GPG Key ID: 30C3FC2E438ADB6E
2 changed files with
6 additions and
0 deletions
-
daemon/src/maker_cfd.rs
-
daemon/src/taker_cfd.rs
|
|
@ -461,6 +461,9 @@ impl Actor { |
|
|
|
|
|
|
|
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...
|
|
|
|
// Consider bubbling the refund availability up to the user, and let user trigger
|
|
|
|
// transaction publication
|
|
|
|
|
|
@ -337,6 +337,9 @@ impl Actor { |
|
|
|
|
|
|
|
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...
|
|
|
|
// Consider bubbling the refund availability up to the user, and let user trigger
|
|
|
|
// transaction publication
|
|
|
|