From 5abb1ce20a59a4aeaf58e27ad0dd90cd18df7055 Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 22 Jan 2021 19:46:45 +1100 Subject: [PATCH] Remove dial connection timeout --- swap/src/protocol/alice/steps.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/swap/src/protocol/alice/steps.rs b/swap/src/protocol/alice/steps.rs index d6be5ae8..883243fc 100644 --- a/swap/src/protocol/alice/steps.rs +++ b/swap/src/protocol/alice/steps.rs @@ -38,13 +38,10 @@ pub async fn negotiate( ) -> Result<(ResponseChannel, 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