We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdf00d8 + d47a88d commit bdace59Copy full SHA for bdace59
1 file changed
src/engine.rs
@@ -238,13 +238,14 @@ pub fn run(params: FunctionRunParams) -> Result<FunctionRunResult> {
238
/// 2. It keeps the door open for different configurations in the future without breaking changes
239
/// 3. It makes it easier to find all places where we create an Engine
240
pub fn new_engine() -> Result<Engine> {
241
- Engine::new(
242
- Config::new()
243
- .wasm_multi_memory(true)
244
- .wasm_threads(false)
245
- .consume_fuel(true)
246
- .epoch_interruption(true),
247
- )
+ let mut config = Config::new();
+ config
+ .wasm_multi_memory(true)
+ .wasm_threads(false)
+ .consume_fuel(true)
+ .epoch_interruption(true);
+ config.cache_config_load_default()?;
248
+ Engine::new(&config)
249
}
250
251
#[cfg(test)]
0 commit comments