Skip to content

Commit

Permalink
locustdb-client v0.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cswinter committed Apr 22, 2024
1 parent 3dff704 commit a914729
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions locustdb-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "locustdb-client"
version = "0.4.3"
version = "0.5.1"
authors = ["Clemens Winter <clemenswinter1@gmail.com>"]
edition = "2018"

Expand All @@ -19,7 +19,6 @@ wasm-bindgen = "0.2.84"
wasm-bindgen-futures = "0.4.42"
locustdb-compression-utils = {path = "../locustdb-compression-utils" }
locustdb-serialization = {path = "../locustdb-serialization", version = "0.1.0" }
bincode = "1.3"
wasm-logger = "0.2.0"
log = "0.4"

Expand Down
1 change: 1 addition & 0 deletions locustdb-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ wasm-pack test --headless --firefox
### 🎁 Publish to NPM with `wasm-pack publish`

```
wasm-pack build --scope cswinter
wasm-pack publish
```

Expand Down
4 changes: 2 additions & 2 deletions locustdb-client/src/client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use locustdb_compression_utils::xor_float;
use locustdb_serialization::api::{Column, ColumnNameRequest, ColumnNameResponse, EncodingOpts, MultiQueryRequest, QueryResponse};
use locustdb_serialization::api::{Column, ColumnNameRequest, ColumnNameResponse, EncodingOpts, MultiQueryRequest, MultiQueryResponse};
use reqwest::header::CONTENT_TYPE;
use wasm_bindgen::prelude::*;
use std::sync::Once;
Expand Down Expand Up @@ -79,7 +79,7 @@ impl Client {
let download_finished_ms = performance.now();

let rsps = if binary {
let mut rsps: Vec<QueryResponse> = bincode::deserialize(&bytes).unwrap();
let mut rsps = MultiQueryResponse::deserialize(&bytes).unwrap().responses;
rsps.iter_mut().for_each(|rsp| {
rsp.columns.iter_mut().for_each(|(key, col)| {
let compressed_bytes = if self.log_stats {
Expand Down

0 comments on commit a914729

Please sign in to comment.