From 2fda22e16826050073505901a8d2b5b261b19945 Mon Sep 17 00:00:00 2001 From: Mark Sinclair Date: Wed, 6 Oct 2021 20:48:09 +0100 Subject: [PATCH] Run new tasks at startup --- explorer-api/src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/explorer-api/src/main.rs b/explorer-api/src/main.rs index 6cb74e203f..b47e2e38c3 100644 --- a/explorer-api/src/main.rs +++ b/explorer-api/src/main.rs @@ -36,7 +36,12 @@ impl ExplorerApi { info!("Explorer API starting up..."); // spawn concurrent tasks - country_statistics::CountryStatistics::new(self.state.clone()).start(); + mix_nodes::tasks::MixNodesTasks::new(self.state.clone()).start(); + country_statistics::distribution::CountryStatisticsDistributionTask::new( + self.state.clone(), + ) + .start(); + country_statistics::geolocate::GeoLocateTask::new(self.state.clone()).start(); http::start(self.state.clone()); // wait for user to press ctrl+C