diff options
| author | metamuffin <metamuffin@disroot.org> | 2024-07-08 01:49:08 +0200 | 
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2024-07-08 01:49:08 +0200 | 
| commit | ba363874d132abcadf3c76085b8308f8233dbdc8 (patch) | |
| tree | d53859c82a69c07d99ebcbc82b176e637d085f70 /server/src/bin | |
| parent | cad20ebc56b36082d20e634dc28a9518b16c3d19 (diff) | |
| download | hurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar hurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar.bz2 hurrycurry-ba363874d132abcadf3c76085b8308f8233dbdc8.tar.zst  | |
fix graph build system
Diffstat (limited to 'server/src/bin')
| -rw-r--r-- | server/src/bin/graph.rs | 6 | 
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)))  |