Remove unnecessary pinning

This commit is contained in:
Thomas Eizinger 2021-03-17 16:39:41 +11:00
parent bd82ae9e98
commit 64b71d0b16
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -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 {