mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 08:07:58 +00:00
Fix browser node (#5166)
This commit is contained in:
@@ -297,6 +297,7 @@ fn create_versioned_wasm_runtime(
|
||||
host_functions: Vec<&'static dyn Function>,
|
||||
allow_missing_func_imports: bool,
|
||||
) -> Result<VersionedRuntime, WasmError> {
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
let time = std::time::Instant::now();
|
||||
let mut runtime = create_wasm_runtime_with_code(
|
||||
wasm_method,
|
||||
@@ -326,6 +327,7 @@ fn create_versioned_wasm_runtime(
|
||||
)?),
|
||||
Err(_) => None,
|
||||
};
|
||||
#[cfg(not(target_os = "unknown"))]
|
||||
log::debug!(
|
||||
target: "wasm-runtime",
|
||||
"Prepared new runtime version {:?} in {} ms.",
|
||||
|
||||
Reference in New Issue
Block a user