Skip to content

Commit 816b0dc

Browse files
committed
fixup! [host] migrate to snapshot-based sandbox API
1 parent f780da0 commit 816b0dc

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/hyperlight_wasm/src/sandbox/loaded_wasm_sandbox.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ impl LoadedWasmSandbox {
5959
params: impl ParameterTuple,
6060
) -> Result<Output> {
6161
match &mut self.inner {
62-
Some(inner) => inner.call_guest_function_by_name(fn_name, params),
63-
None => log_then_return!("No inner MultiUseSandbox to call_guest_function"),
62+
Some(inner) => inner.call(fn_name, params),
63+
None => log_then_return!("No inner MultiUseSandbox to call"),
6464
}
6565
}
6666

src/hyperlight_wasm/src/sandbox/proto_wasm_sandbox.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl ProtoWasmSandbox {
9494
None => return Err(new_error!("No inner sandbox found.")),
9595
};
9696

97-
let res: i32 = sandbox.call_guest_function_by_name("InitWasmRuntime", ())?;
97+
let res: i32 = sandbox.call("InitWasmRuntime", ())?;
9898
if res != 0 {
9999
return Err(new_error!(
100100
"InitWasmRuntime Failed with error code {:?}",

src/hyperlight_wasm/src/sandbox/wasm_sandbox.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
use std::path::Path;
1818

1919
use hyperlight_host::mem::memory_region::{MemoryRegion, MemoryRegionFlags, MemoryRegionType};
20-
use hyperlight_host::sandbox::Callable;
2120
use hyperlight_host::sandbox::snapshot::Snapshot;
2221
use hyperlight_host::{MultiUseSandbox, Result, new_error};
2322

0 commit comments

Comments
 (0)