mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
Merge patterns
This commit is contained in:
parent
8fad8fb2b6
commit
dffe4351a8
@ -176,24 +176,19 @@ where
|
||||
HandlerOutEvent::Initiated(send_wallet_snapshot) => {
|
||||
self.events.push_back(OutEvent::Initiated { send_wallet_snapshot })
|
||||
}
|
||||
HandlerOutEvent::Completed(swap_setup_result) => {
|
||||
match swap_setup_result {
|
||||
Ok((swap_id, state3)) => {
|
||||
self.events.push_back(OutEvent::Completed {
|
||||
peer_id,
|
||||
swap_id,
|
||||
state3
|
||||
})
|
||||
}
|
||||
Err(error) => {
|
||||
self.events.push_back(OutEvent::Error {
|
||||
peer_id,
|
||||
error
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
HandlerOutEvent::Completed(Ok((swap_id, state3))) => {
|
||||
self.events.push_back(OutEvent::Completed {
|
||||
peer_id,
|
||||
swap_id,
|
||||
state3
|
||||
})
|
||||
},
|
||||
HandlerOutEvent::Completed(Err(error)) => {
|
||||
self.events.push_back(OutEvent::Error {
|
||||
peer_id,
|
||||
error
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user