mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 07:56:05 -04:00
Remove dial connection timeout
This commit is contained in:
parent
741f97efff
commit
5abb1ce20a
@ -38,13 +38,10 @@ pub async fn negotiate(
|
||||
) -> Result<(ResponseChannel<AliceToBob>, alice::State3)> {
|
||||
trace!("Starting negotiate");
|
||||
|
||||
// todo: we can move this out, we dont need to timeout here
|
||||
let _peer_id = timeout(
|
||||
config.bob_time_to_act,
|
||||
event_loop_handle.recv_conn_established(),
|
||||
)
|
||||
.await
|
||||
.context("Failed to receive dial connection from Bob")??;
|
||||
let _peer_id = event_loop_handle
|
||||
.recv_conn_established()
|
||||
.await
|
||||
.context("Failed to receive dial connection from Bob")?;
|
||||
|
||||
let event = timeout(config.bob_time_to_act, event_loop_handle.recv_request())
|
||||
.await
|
||||
|
Loading…
x
Reference in New Issue
Block a user