Skip to content

Commit

Permalink
containerd-shim-wasm/src/sandbox/shim/cli: rename duplicated wamrInst…
Browse files Browse the repository at this point in the history
…ance to wamrInst

Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Nov 15, 2024
1 parent dd1d892 commit dea9609
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/containerd-shim-wamr/src/instance.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use anyhow::{Context, Result};
use containerd_shim_wasm::container::{Engine, Entrypoint, Instance, RuntimeContext, Stdio};
use wamr_rust_sdk::function::Function;
use wamr_rust_sdk::instance::Instance as WamrInstance;
use wamr_rust_sdk::instance::Instance as WamrInst;
use wamr_rust_sdk::module::Module;
use wamr_rust_sdk::runtime::Runtime;
use wamr_rust_sdk::wasi_context::WasiCtxBuilder;
Expand Down Expand Up @@ -70,7 +70,7 @@ impl Engine for WamrEngine {

log::info!("Create a WAMR instance");

let instance = WamrInstance::new(&self.runtime, &module, 1024 * 64)
let instance = WamrInst::new(&self.runtime, &module, 1024 * 64)
.context("Failed to create instance")?;

log::info!("redirect stdio");
Expand Down

0 comments on commit dea9609

Please sign in to comment.