mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-09-24 22:58:30 -04:00
fix formatting and typo
This commit is contained in:
parent
391fb226b5
commit
7e5c1ae45a
2 changed files with 2 additions and 2 deletions
|
@ -12,7 +12,7 @@ pub async fn cancel_and_refund(
|
||||||
db: Arc<dyn Database + Send + Sync>,
|
db: Arc<dyn Database + Send + Sync>,
|
||||||
) -> Result<BobState> {
|
) -> Result<BobState> {
|
||||||
match cancel(swap_id, bitcoin_wallet.clone(), db.clone()).await {
|
match cancel(swap_id, bitcoin_wallet.clone(), db.clone()).await {
|
||||||
Ok((_, state @ BobState::BtcCancelled {..})) => {
|
Ok((_, state @ BobState::BtcCancelled { .. })) => {
|
||||||
return Ok(state);
|
return Ok(state);
|
||||||
}
|
}
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
|
|
|
@ -50,7 +50,7 @@ async fn given_alice_and_bob_manually_refund_after_funds_locked_both_refund() {
|
||||||
|
|
||||||
// Bob manually cancels
|
// Bob manually cancels
|
||||||
bob_join_handle.abort();
|
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 { .. }));
|
assert!(matches!(state, BobState::BtcCancelled { .. }));
|
||||||
|
|
||||||
let (bob_swap, bob_join_handle) = ctx
|
let (bob_swap, bob_join_handle) = ctx
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue