From 64b71d0b167052a875aacf12b6e4bebf41e682e0 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Wed, 17 Mar 2021 16:39:41 +1100 Subject: [PATCH] Remove unnecessary pinning --- swap/src/protocol/alice/steps.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/swap/src/protocol/alice/steps.rs b/swap/src/protocol/alice/steps.rs index eec8a86b..192ca522 100644 --- a/swap/src/protocol/alice/steps.rs +++ b/swap/src/protocol/alice/steps.rs @@ -6,7 +6,6 @@ use crate::protocol::alice::event_loop::EventLoopHandle; use crate::protocol::alice::TransferProof; use crate::{bitcoin, monero}; use anyhow::{bail, Context, Result}; -use futures::pin_mut; pub async fn lock_xmr( state3: alice::State3, @@ -103,9 +102,6 @@ pub async fn wait_for_bitcoin_refund( status.is_confirmed_with(punish_timelock) }); - pin_mut!(punish_timelock_expired); - pin_mut!(seen_refund_tx); - tokio::select! { seen_refund = seen_refund_tx => { match seen_refund {