mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
chore: clippy fix
This commit is contained in:
parent
283ee882d9
commit
95f73e5e4d
@ -176,7 +176,7 @@ where
|
||||
let _ = responder.respond(wallet_snapshot);
|
||||
}
|
||||
SwarmEvent::Behaviour(OutEvent::SwapSetupCompleted{peer_id, swap_id, state3}) => {
|
||||
let _ = self.handle_execution_setup_done(peer_id, swap_id, state3).await;
|
||||
self.handle_execution_setup_done(peer_id, swap_id, state3).await;
|
||||
}
|
||||
SwarmEvent::Behaviour(OutEvent::SwapDeclined { peer, error }) => {
|
||||
tracing::warn!(%peer, "Ignoring spot price request: {}", error);
|
||||
|
@ -176,7 +176,7 @@ where
|
||||
}
|
||||
},
|
||||
result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
AliceState::CancelTimelockExpired {
|
||||
monero_wallet_restore_blockheight,
|
||||
transfer_proof,
|
||||
@ -196,7 +196,7 @@ where
|
||||
biased; // make sure the cancel timelock expiry future is polled first
|
||||
|
||||
result = tx_lock_status.wait_until_confirmed_with(state3.cancel_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
AliceState::CancelTimelockExpired {
|
||||
monero_wallet_restore_blockheight,
|
||||
transfer_proof,
|
||||
@ -326,7 +326,7 @@ where
|
||||
}
|
||||
}
|
||||
result = tx_cancel_status.wait_until_confirmed_with(state3.punish_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
|
||||
AliceState::BtcPunishable {
|
||||
monero_wallet_restore_blockheight,
|
||||
|
@ -137,7 +137,7 @@ async fn next_state(
|
||||
}
|
||||
},
|
||||
result = cancel_timelock_expires => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
tracing::info!("Alice took too long to lock Monero, cancelling the swap");
|
||||
|
||||
let state4 = state3.cancel();
|
||||
@ -174,7 +174,7 @@ async fn next_state(
|
||||
}
|
||||
}
|
||||
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
BobState::CancelTimelockExpired(state.cancel())
|
||||
}
|
||||
}
|
||||
@ -198,7 +198,7 @@ async fn next_state(
|
||||
}
|
||||
},
|
||||
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
BobState::CancelTimelockExpired(state.cancel())
|
||||
}
|
||||
}
|
||||
@ -215,7 +215,7 @@ async fn next_state(
|
||||
BobState::BtcRedeemed(state5?)
|
||||
},
|
||||
result = tx_lock_status.wait_until_confirmed_with(state.cancel_timelock) => {
|
||||
let _ = result?;
|
||||
result?;
|
||||
BobState::CancelTimelockExpired(state.cancel())
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user