mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-08-08 22:42:35 -04:00
Remove dial connection timeout
This commit is contained in:
parent
741f97efff
commit
5abb1ce20a
1 changed files with 4 additions and 7 deletions
|
@ -38,13 +38,10 @@ pub async fn negotiate(
|
||||||
) -> Result<(ResponseChannel<AliceToBob>, alice::State3)> {
|
) -> Result<(ResponseChannel<AliceToBob>, alice::State3)> {
|
||||||
trace!("Starting negotiate");
|
trace!("Starting negotiate");
|
||||||
|
|
||||||
// todo: we can move this out, we dont need to timeout here
|
let _peer_id = event_loop_handle
|
||||||
let _peer_id = timeout(
|
.recv_conn_established()
|
||||||
config.bob_time_to_act,
|
|
||||||
event_loop_handle.recv_conn_established(),
|
|
||||||
)
|
|
||||||
.await
|
.await
|
||||||
.context("Failed to receive dial connection from Bob")??;
|
.context("Failed to receive dial connection from Bob")?;
|
||||||
|
|
||||||
let event = timeout(config.bob_time_to_act, event_loop_handle.recv_request())
|
let event = timeout(config.bob_time_to_act, event_loop_handle.recv_request())
|
||||||
.await
|
.await
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue