From dea96091f994258574ecafb82ded13b77fba9014 Mon Sep 17 00:00:00 2001 From: jiaxiao zhou Date: Fri, 15 Nov 2024 23:04:22 +0000 Subject: [PATCH] containerd-shim-wasm/src/sandbox/shim/cli: rename duplicated wamrInstance to wamrInst Signed-off-by: jiaxiao zhou --- crates/containerd-shim-wamr/src/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/containerd-shim-wamr/src/instance.rs b/crates/containerd-shim-wamr/src/instance.rs index e5c090620..5e8231419 100644 --- a/crates/containerd-shim-wamr/src/instance.rs +++ b/crates/containerd-shim-wamr/src/instance.rs @@ -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; @@ -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");