Skip to content

Commit

Permalink
remove debug logging, add wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelkirk committed Jul 15, 2024
1 parent e92b9ce commit 89f6320
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: cargo test
run: cargo test --release --all-features
- name: check all targets (e.g. bench)
Expand Down
6 changes: 0 additions & 6 deletions geomedea/src/http_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,8 @@ impl Selection {
return Ok(None);
}

debug!("next_feature_buffer.select_all");
if page_reader.current_page_was_read_to_end() {
debug!("begin next_feature_buffer.next_page");
page_reader.next_page().await?;
debug!("end next_feature_buffer.next_page");
}

select_all.features_left_in_document -= 1;
Expand All @@ -612,17 +609,14 @@ impl Selection {
}
}

debug!("begin: read feature len - {page_reader:?}");
let mut len_bytes = [0u8; 8];
page_reader.read_exact(&mut len_bytes).await?;
// first feature_len = 70
let feature_len = u64::from_le_bytes(len_bytes);
debug!("done: read feature len: {feature_len}");

let mut feature_buffer = BytesMut::zeroed(feature_len as usize);
// Error is on this next line:
page_reader.read_exact(&mut feature_buffer).await?;
debug!("done: read feature bytes");

Ok(Some(feature_buffer.freeze()))
}
Expand Down

0 comments on commit 89f6320

Please sign in to comment.