aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-21 20:29:01 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-21 20:29:01 +0200
commitb84e9be9d64bad2b1a44f34c499de7dd0525f2b6 (patch)
tree4974384e287fbfd2edb880e8e0edcde530ba55b3
parentc6293d8e328bb96c368921fe922092d4f27f0bc9 (diff)
downloadplanetwars.dev-b84e9be9d64bad2b1a44f34c499de7dd0525f2b6.tar.xz
planetwars.dev-b84e9be9d64bad2b1a44f34c499de7dd0525f2b6.zip
re-enable bot_api server
-rw-r--r--planetwars-server/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs
index 7bc50f3..c8585f8 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -17,6 +17,7 @@ use bb8::{Pool, PooledConnection};
use bb8_diesel::{self, DieselConnectionManager};
use config::ConfigError;
use diesel::{Connection, PgConnection};
+use modules::bot_api::run_bot_api;
use modules::ranking::run_ranker;
use modules::registry::registry_service;
use serde::{Deserialize, Serialize};
@@ -168,6 +169,7 @@ pub async fn run_app() {
tokio::spawn(run_ranker(global_config.clone(), db_pool.clone()));
}
tokio::spawn(run_registry(global_config.clone(), db_pool.clone()));
+ tokio::spawn(run_bot_api(global_config.clone(), db_pool.clone()));
let api_service = Router::new()
.nest("/api", api())