Fixes wasm build

pull/190/head
Tpt 3 years ago
parent c1f47ea7aa
commit ac64b58825
  1. 1
      lib/src/storage/mod.rs
  2. 1
      lib/src/store.rs

@ -635,6 +635,7 @@ impl StorageReader {
}
/// Validates that all the storage invariants held in the data
#[cfg(not(target_arch = "wasm32"))]
pub fn validate(&self) -> Result<(), StorageError> {
// triples
let dspo_size = self.dspo_quads(&[]).count();

@ -860,6 +860,7 @@ impl Store {
/// Validates that all the store invariants held in the data
#[doc(hidden)]
#[cfg(not(target_arch = "wasm32"))]
pub fn validate(&self) -> Result<(), StorageError> {
self.storage.snapshot().validate()
}

Loading…
Cancel
Save