aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/ranking.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-10-13 23:42:44 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-10-13 23:42:44 +0200
commit353ecd4c165042234e9f976b158bc970517940f5 (patch)
treec057b7f8bcad2fe300da9391aff539409a0f83b0 /planetwars-server/src/modules/ranking.rs
parenteb2cbb15fbea6dd6f800598329cd5cc892090d7b (diff)
downloadplanetwars.dev-353ecd4c165042234e9f976b158bc970517940f5.tar.xz
planetwars.dev-353ecd4c165042234e9f976b158bc970517940f5.zip
basic test for list_matches and had_errors
Diffstat (limited to 'planetwars-server/src/modules/ranking.rs')
-rw-r--r--planetwars-server/src/modules/ranking.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-server/src/modules/ranking.rs b/planetwars-server/src/modules/ranking.rs
index 92f0f8a..aa4060c 100644
--- a/planetwars-server/src/modules/ranking.rs
+++ b/planetwars-server/src/modules/ranking.rs
@@ -44,12 +44,12 @@ pub async fn run_ranker(config: Arc<GlobalConfig>, db_pool: DbPool) {
Some(map) => map,
};
- play_ranking_match(config.clone(), map, selected_bots, db_pool.clone()).await;
+ play_ranked_match(config.clone(), map, selected_bots, db_pool.clone()).await;
recalculate_ratings(&mut db_conn).expect("could not recalculate ratings");
}
}
-async fn play_ranking_match(
+pub async fn play_ranked_match(
config: Arc<GlobalConfig>,
map: Map,
selected_bots: Vec<(Bot, BotVersion)>,