mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
f35ed436ce
The `EventLoop` will use the `Builder` interface to instantiate a `Swap` upon receiving a `SwapRequest` and successfully doing an execution setup. Before this change, the `EventLoop` would have to hold the path to the db and re-open the db everytime it wants to construct a swap. With this change, we can open the DB once and then hold a `Arc<Database>` in the `EventLoop` and pass it to new `Swap`s structs. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |