mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-04-20 16:06:00 -04:00
fix formatting and typo
This commit is contained in:
parent
391fb226b5
commit
7e5c1ae45a
@ -12,7 +12,7 @@ pub async fn cancel_and_refund(
|
||||
db: Arc<dyn Database + Send + Sync>,
|
||||
) -> Result<BobState> {
|
||||
match cancel(swap_id, bitcoin_wallet.clone(), db.clone()).await {
|
||||
Ok((_, state @ BobState::BtcCancelled {..})) => {
|
||||
Ok((_, state @ BobState::BtcCancelled { .. })) => {
|
||||
return Ok(state);
|
||||
}
|
||||
Err(err) => {
|
||||
|
@ -50,7 +50,7 @@ async fn given_alice_and_bob_manually_refund_after_funds_locked_both_refund() {
|
||||
|
||||
// Bob manually cancels
|
||||
bob_join_handle.abort();
|
||||
let (_, _, state) = cli::cancel(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db).await?;
|
||||
let (_, state) = cli::cancel(bob_swap.id, bob_swap.bitcoin_wallet, bob_swap.db).await?;
|
||||
assert!(matches!(state, BobState::BtcCancelled { .. }));
|
||||
|
||||
let (bob_swap, bob_join_handle) = ctx
|
||||
|
Loading…
x
Reference in New Issue
Block a user