mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-20 15:40:48 -04:00
Use event_process = false for Alice
As we do not process the event, we can just implement the needed `From` traits.
This commit is contained in:
parent
554ae6c00e
commit
a7b89e2fe4
7 changed files with 140 additions and 170 deletions
|
@ -46,13 +46,13 @@ pub async fn negotiate(
|
|||
|
||||
let event = timeout(
|
||||
execution_params.bob_time_to_act,
|
||||
event_loop_handle.recv_request(),
|
||||
event_loop_handle.recv_swap_request(),
|
||||
)
|
||||
.await
|
||||
.context("Failed to receive swap request from Bob")??;
|
||||
|
||||
event_loop_handle
|
||||
.send_swap_response(event.channel, SwapResponse { xmr_amount })
|
||||
.send_swap_response(event.1, SwapResponse { xmr_amount })
|
||||
.await?;
|
||||
|
||||
let state3 = timeout(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue