mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-26 07:16:06 -05:00
Fix recursive call to swap by using run_until
We should call run_until instead of swap.
This commit is contained in:
parent
35c42263df
commit
e4795fa4ee
@ -360,8 +360,10 @@ pub async fn run_until(
|
|||||||
let db_state = (&state).into();
|
let db_state = (&state).into();
|
||||||
db.insert_latest_state(swap_id, Swap::Alice(db_state))
|
db.insert_latest_state(swap_id, Swap::Alice(db_state))
|
||||||
.await?;
|
.await?;
|
||||||
swap(
|
|
||||||
|
run_until(
|
||||||
state,
|
state,
|
||||||
|
is_target_state,
|
||||||
event_loop_handle,
|
event_loop_handle,
|
||||||
bitcoin_wallet.clone(),
|
bitcoin_wallet.clone(),
|
||||||
monero_wallet,
|
monero_wallet,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user