Skip to content

Commit d9f1018

Browse files
committed
Fixed a compile issue on the module cache
1 parent 902670a commit d9f1018

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/wasi/src/bin_factory/module_cache.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::{cell::RefCell, collections::HashMap, ops::DerefMut, path::PathBuf, sync::RwLock};
22

33
use bytes::Bytes;
4-
use wasmer::{AsStoreRef, Module};
4+
use wasmer::{AsEngineRef, Module};
55
use wasmer_wasi_types::wasi::Snapshot0Clockid;
66

77
use super::BinaryPackage;
@@ -163,7 +163,7 @@ impl ModuleCache {
163163

164164
pub fn get_compiled_module(
165165
&self,
166-
store: &impl AsStoreRef,
166+
engine: &impl AsEngineRef,
167167
data_hash: &str,
168168
compiler: &str,
169169
) -> Option<Module> {
@@ -201,7 +201,7 @@ impl ModuleCache {
201201
let module_bytes = Bytes::from(data);
202202

203203
// Load the module
204-
let module = unsafe { Module::deserialize(store, &module_bytes[..]).unwrap() };
204+
let module = unsafe { Module::deserialize(engine, &module_bytes[..]).unwrap() };
205205

206206
if let Some(cache) = &self.cached_modules {
207207
let mut cache = cache.write().unwrap();

0 commit comments

Comments
 (0)