aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/modules/bot_api.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-09 20:01:05 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-09 20:01:05 +0200
commitec1d50f655c05d9dec0c4b01fd1039e9c5525f34 (patch)
tree90973a749e5d67ddf9749b23f82a41beba0ac812 /planetwars-server/src/modules/bot_api.rs
parent7eb02a2efc8f0bb8ec411c5af0f648aeda939226 (diff)
downloadplanetwars.dev-ec1d50f655c05d9dec0c4b01fd1039e9c5525f34.tar.xz
planetwars.dev-ec1d50f655c05d9dec0c4b01fd1039e9c5525f34.zip
refactor: pass on both Bot and BotVersion to MatchPlayer
Diffstat (limited to 'planetwars-server/src/modules/bot_api.rs')
-rw-r--r--planetwars-server/src/modules/bot_api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/modules/bot_api.rs b/planetwars-server/src/modules/bot_api.rs
index 6324010..732aa21 100644
--- a/planetwars-server/src/modules/bot_api.rs
+++ b/planetwars-server/src/modules/bot_api.rs
@@ -115,7 +115,7 @@ impl pb::bot_api_service_server::BotApiService for BotApiServer {
});
let mut run_match = RunMatch::from_players(vec![
MatchPlayer::from_bot_spec(remote_bot_spec),
- MatchPlayer::from_code_bundle(&opponent_code_bundle),
+ MatchPlayer::from_bot_version(&opponent, &opponent_code_bundle),
]);
let created_match = run_match
.store_in_database(&conn)