mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-02-24 08:39:53 -05:00

Instead of leaking the tokio::sync:⌚:Receiver type in our
return value, we create a newtype that implements the desired
interface. This allows us to get rid of the `RateService` structs
and instead implement `LatestRate` directly on top of this struct.
Given that `LatestRate` is only used within the event_loop module,
we move the definition of this type into there.
8 lines
123 B
Rust
8 lines
123 B
Rust
pub mod command;
|
|
pub mod config;
|
|
mod fixed_rate;
|
|
mod rate;
|
|
|
|
pub use self::fixed_rate::FixedRate;
|
|
pub use self::rate::Rate;
|