aboutsummaryrefslogtreecommitdiff
path: root/planetwars-server/src/lib.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-07-07 19:13:55 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-07-07 19:13:55 +0200
commit0f14dee499f48b11fc329164c30cd475400a9f4d (patch)
treeb78e7546974c2785df5b713cf217ae89ce133475 /planetwars-server/src/lib.rs
parent6ec792e3bd633a0b3971e401d29b2f8671f38b14 (diff)
downloadplanetwars.dev-0f14dee499f48b11fc329164c30cd475400a9f4d.tar.xz
planetwars.dev-0f14dee499f48b11fc329164c30cd475400a9f4d.zip
refactor: rename save_code_bundle to save_code_string
Diffstat (limited to 'planetwars-server/src/lib.rs')
-rw-r--r--planetwars-server/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/planetwars-server/src/lib.rs b/planetwars-server/src/lib.rs
index 7076604..fdaf800 100644
--- a/planetwars-server/src/lib.rs
+++ b/planetwars-server/src/lib.rs
@@ -51,7 +51,7 @@ pub async fn seed_simplebot(pool: &ConnectionPool) {
let simplebot_code =
std::fs::read_to_string(SIMPLEBOT_PATH).expect("could not read simplebot code");
- modules::bots::save_code_bundle(&simplebot_code, Some(simplebot.id), &conn)?;
+ modules::bots::save_code_string(&simplebot_code, Some(simplebot.id), &conn)?;
println!("initialized simplebot");