aboutsummaryrefslogtreecommitdiff
path: root/server/src/bin/graph.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-07-07 23:03:07 +0200
committermetamuffin <metamuffin@disroot.org>2024-07-07 23:03:07 +0200
commitcd6e8f3886d764847f92ad75d397e2f2f6ad930a (patch)
treec99e141bc51c2004cdde1b0660ed10b2696f04d8 /server/src/bin/graph.rs
parentfd46def1ebc10d1f2ee4f4447f33e2dfb35986d2 (diff)
downloadhurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar
hurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar.bz2
hurrycurry-cd6e8f3886d764847f92ad75d397e2f2f6ad930a.tar.zst
add option to download map source
Diffstat (limited to 'server/src/bin/graph.rs')
-rw-r--r--server/src/bin/graph.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs
index 024512c6..766fa851 100644
--- a/server/src/bin/graph.rs
+++ b/server/src/bin/graph.rs
@@ -16,6 +16,7 @@
*/
use anyhow::{anyhow, Result};
+use pollster::FutureExt;
use undercooked::{
data::{DataIndex, Demand},
interaction::Recipe,
@@ -32,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}"))?;
+ let data = index.generate(format!("small-default-{rn}")).block_on()?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))