aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/bot_api.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-14 21:50:42 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-14 21:50:42 +0200
commitec5c91d37b46cb3cec4878176469c66d2304dadd (patch)
tree16b4dd13605d1a3349a4240f3b25b134af572c84 /planetwars-server/src/modules/bot_api.rs
parent00459f9e3d818f0fb84160862f02898d64f98110 (diff)
downloadplanetwars.dev-ec5c91d37b46cb3cec4878176469c66d2304dadd.tar.xz
planetwars.dev-ec5c91d37b46cb3cec4878176469c66d2304dadd.zip
change runnerconfig to globalconfig
Diffstat (limited to 'planetwars-server/src/modules/bot_api.rs')
-rw-r--r--planetwars-server/src/modules/bot_api.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/planetwars-server/src/modules/bot_api.rs b/planetwars-server/src/modules/bot_api.rs
index 4e7d737..33f5d87 100644
--- a/planetwars-server/src/modules/bot_api.rs
+++ b/planetwars-server/src/modules/bot_api.rs
@@ -20,12 +20,13 @@ use planetwars_matchrunner as runner;
use crate::db;
use crate::util::gen_alphanumeric;
use crate::ConnectionPool;
+use crate::GlobalConfig;
-use super::matches::{MatchPlayer, MatchRunnerConfig, RunMatch};
+use super::matches::{MatchPlayer, RunMatch};
pub struct BotApiServer {
conn_pool: ConnectionPool,
- runner_config: Arc<MatchRunnerConfig>,
+ runner_config: Arc<GlobalConfig>,
router: PlayerRouter,
}
@@ -265,7 +266,7 @@ async fn schedule_timeout(
.resolve_request(request_id, Err(RequestError::Timeout));
}
-pub async fn run_bot_api(runner_config: Arc<MatchRunnerConfig>, pool: ConnectionPool) {
+pub async fn run_bot_api(runner_config: Arc<GlobalConfig>, pool: ConnectionPool) {
let router = PlayerRouter::new();
let server = BotApiServer {
router,