mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-10-01 01:45:40 -04:00
bb1537d6f2
If communication with the other party fails the program should stop and the user should see the respective error. Communication errors are handled in the event-loop. Upon a communication error the event loop is stopped. Since the event loop is only stopped upon error the Result returned from the event loop is Infallible. If one of the two futures, event loop and swap, finishes (success/failure) the other future should be stopped as well. We use tokio::selec! to stop either future if the other stops. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |