Skip to content

Commit

Permalink
Fix browser node (paritytech#5166)
Browse files Browse the repository at this point in the history
  • Loading branch information
expenses authored Mar 6, 2020
1 parent 1a02288 commit f4616af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/executor/src/wasm_runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit f4616af

Please sign in to comment.