Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BackEnd] remove wasi_logging plugin #168

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions moxin-backend/src/backend_impls/api_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,6 @@ pub fn run_wasm_by_downloaded_file(
let mut wasi_nn = wasmedge_sdk::plugin::PluginManager::load_plugin_wasi_nn().unwrap();
instances.insert(wasi_nn.name().unwrap(), &mut wasi_nn);

let mut wasi_logger = wasmedge_sdk::plugin::PluginManager::create_plugin_instance(
"wasi_logging",
"wasi:logging/logging",
);

if let Ok(wasi_logger) = &mut wasi_logger {
instances.insert(wasi_logger.name().unwrap(), wasi_logger);
}

let store = Store::new(None, instances).unwrap();
let mut vm = Vm::new(store);
vm.register_module(None, wasm_module.clone()).unwrap();
Expand Down