mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 14:25:32 +00:00
Revert "Improved wasmer invoke based on feedback"
This reverts commit f3b7c6b321
.
This commit is contained in:
parent
f3b7c6b321
commit
3d3636059a
@ -687,7 +687,10 @@ fn execute_wasm(options: &Run) -> Result<(), String> {
|
||||
args.push(Value::I32(x));
|
||||
}
|
||||
|
||||
let invoke_fn = options.invoke.clone().unwrap_or("main".to_owned());
|
||||
let invoke_fn = match options.invoke.as_ref() {
|
||||
Some(fun) => fun,
|
||||
_ => "main",
|
||||
};
|
||||
instance
|
||||
.dyn_func(&invoke_fn)
|
||||
.map_err(|e| format!("{:?}", e))?
|
||||
|
Loading…
Reference in New Issue
Block a user