aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-08 01:49:08 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-08 01:49:08 +0200
commitba363874d132abcadf3c76085b8308f8233dbdc8 (patch)
treed53859c82a69c07d99ebcbc82b176e637d085f70 /server/src
parentcad20ebc56b36082d20e634dc28a9518b16c3d19 (diff)
downloadhurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar
hurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar.bz2
hurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar.zst
fix graph build system
Diffstat (limited to 'server/src')
-rw-r--r--server/src/bin/graph.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs
index 766fa851..38b081a9 100644
--- a/server/src/bin/graph.rs
+++ b/server/src/bin/graph.rs
@@ -16,14 +16,14 @@
*/
use anyhow::{anyhow, Result};
-use pollster::FutureExt;
use undercooked::{
data::{DataIndex, Demand},
interaction::Recipe,
protocol::{ItemIndex, RecipeIndex},
};
-fn main() -> Result<()> {
+#[tokio::main]
+async fn main() -> Result<()> {
let mut index = DataIndex::default();
index.reload()?;
@@ -33,7 +33,7 @@ fn main() -> Result<()> {
.nth(1)
.ok_or(anyhow!("first arg should be recipe set name"))?;
- let data = index.generate(format!("small-default-{rn}")).block_on()?;
+ let data = index.generate(format!("lobby-default-{rn}")).await?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))