Browse Source
Remove unnecessary async move
feature/actor-custom-derive
Mariusz Klochowicz
3 years ago
No known key found for this signature in database
GPG Key ID: 470C865699C8D4D
1 changed files with
19 additions and
24 deletions
-
daemon/src/maker.rs
|
|
@ -209,8 +209,7 @@ async fn main() -> Result<()> { |
|
|
|
cfd_feed_receiver, |
|
|
|
order_feed_receiver, |
|
|
|
update_cfd_feed_receiver, |
|
|
|
} = |
|
|
|
ActorSystem::new( |
|
|
|
} = ActorSystem::new( |
|
|
|
db, |
|
|
|
wallet.clone(), |
|
|
|
oracle, |
|
|
@ -218,14 +217,10 @@ async fn main() -> Result<()> { |
|
|
|
{ |
|
|
|
|channel, cfds| { |
|
|
|
let electrum = opts.network.electrum().to_string(); |
|
|
|
async move { |
|
|
|
monitor::Actor::new(electrum, channel, cfds.clone()).await |
|
|
|
monitor::Actor::new(electrum, channel, cfds) |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|channel0, channel1| { |
|
|
|
maker_inc_connections::Actor::new(channel0, channel1) |
|
|
|
}, |
|
|
|
|channel0, channel1| maker_inc_connections::Actor::new(channel0, channel1), |
|
|
|
listener, |
|
|
|
) |
|
|
|
.await; |
|
|
|