mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-11-25 18:26:28 -05:00
Don't stutter
This commit is contained in:
parent
7adeaae12d
commit
e266fb07ef
12 changed files with 20 additions and 20 deletions
|
|
@ -33,7 +33,7 @@ pub async fn run_until(
|
|||
|
||||
while !is_target_state(¤t_state) {
|
||||
current_state = next_state(
|
||||
swap.swap_id,
|
||||
swap.id,
|
||||
current_state,
|
||||
&mut swap.event_loop_handle,
|
||||
swap.bitcoin_wallet.as_ref(),
|
||||
|
|
@ -45,7 +45,7 @@ pub async fn run_until(
|
|||
|
||||
let db_state = current_state.clone().into();
|
||||
swap.db
|
||||
.insert_latest_state(swap.swap_id, Swap::Bob(db_state))
|
||||
.insert_latest_state(swap.id, Swap::Bob(db_state))
|
||||
.await?;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue