Skip to content

Commit

Permalink
Change store initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 24, 2024
1 parent e8328eb commit 01e303f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ impl Runner {
}
}

static STORE: Lazy<wasmer::Store> = Lazy::new(wasmer::Store::default);
static STORE: Lazy<wasmer::Store> = Lazy::new(|| {
let engine = wasmer::UniversalEngine::headless();
wasmer::Store::new(&engine)
});

const PROD_BASE_URL: &str = "https://robotrumble.org";

Expand Down

0 comments on commit 01e303f

Please sign in to comment.