diff options
author | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-07 19:13:55 +0200 |
---|---|---|
committer | Ilion Beyst <ilion.beyst@gmail.com> | 2022-07-07 19:13:55 +0200 |
commit | 0f14dee499f48b11fc329164c30cd475400a9f4d (patch) | |
tree | b78e7546974c2785df5b713cf217ae89ce133475 /planetwars-server/src/lib.rs | |
parent | 6ec792e3bd633a0b3971e401d29b2f8671f38b14 (diff) | |
download | planetwars.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.rs | 2 |
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"); |