Skip to content

Commit

Permalink
chore: removed temporary wasm machinery
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Nov 30, 2023
1 parent 60b0d8c commit 48770da
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 29 deletions.
13 changes: 0 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions query-engine/query-engine-wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ url = "2"
serde.workspace = true
tokio = { version = "1.25", features = ["macros", "sync", "io-util", "time"] }
futures = "0.3"
log = "0.4.6"
wasm-logger = "0.2.0"

tracing = "0.1"
tracing-subscriber = { version = "0.3" }
tracing-futures = "0.2"
tracing-opentelemetry = "0.17.3"
opentelemetry = { version = "0.17"}
console_error_panic_hook = "0.1.7"
12 changes: 0 additions & 12 deletions query-engine/query-engine-wasm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,6 @@ mod arch {
pub use super::wasm::*;

pub(crate) type Result<T> = std::result::Result<T, error::ApiError>;

use wasm_bindgen::prelude::wasm_bindgen;

/// Function that should be called before any other public function in this module.
#[wasm_bindgen]
pub fn init() {
// Set up temporary logging for the wasm module.
wasm_logger::init(wasm_logger::Config::default());

// Set up temporary panic hook for the wasm module.
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
}
}

pub use arch::*;
1 change: 0 additions & 1 deletion query-engine/query-engine-wasm/src/wasm/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,6 @@ impl QueryEngine {

#[wasm_bindgen]
pub async fn metrics(&self, json_options: String) -> Result<(), wasm_bindgen::JsError> {
log::info!("Called `QueryEngine::metrics()`");
Err(ApiError::configuration("Metrics is not enabled in Wasm.").into())
}
}
Expand Down

0 comments on commit 48770da

Please sign in to comment.