File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -238,13 +238,14 @@ pub fn run(params: FunctionRunParams) -> Result<FunctionRunResult> {
238
238
/// 2. It keeps the door open for different configurations in the future without breaking changes
239
239
/// 3. It makes it easier to find all places where we create an Engine
240
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
- )
241
+ let mut config = Config :: new ( ) ;
242
+ config
243
+ . wasm_multi_memory ( true )
244
+ . wasm_threads ( false )
245
+ . consume_fuel ( true )
246
+ . epoch_interruption ( true ) ;
247
+ config. cache_config_load_default ( ) ?;
248
+ Engine :: new ( & config)
248
249
}
249
250
250
251
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments