fixed the tests

This commit is contained in:
Sebastian Moser
2024-09-22 10:09:15 +02:00
parent 6ae8a5d3f0
commit 1724e99f58
4 changed files with 12 additions and 24 deletions

View File

@@ -49,23 +49,6 @@ pub fn updater_thread(operation_rx : Receiver<Operation>, instance: &Instance) -
}
pub fn handle_operation(operation: &mut Operation, instance: &Instance) -> MizeResult<()> {
#[cfg(feature = "wasm-target")]
unsafe {
// console_log macro
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
#[wasm_bindgen(js_namespace = console)]
fn log(s: &str);
}
macro_rules! console_log {
// Note that this is using the `log` function imported above during
// `bare_bones`
($($t:tt)*) => (log(&format_args!($($t)*).to_string()))
}
//end of console_log macro
console_log!("handle operation....: {:?}", operation);
}
match operation {
Operation::Set(id, value, maybe_conn) => {