From ac64b58825c7abcf6abfa973c5bf43a3aae5be2d Mon Sep 17 00:00:00 2001 From: Tpt Date: Wed, 2 Feb 2022 20:08:44 +0100 Subject: [PATCH] Fixes wasm build --- lib/src/storage/mod.rs | 1 + lib/src/store.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/src/storage/mod.rs b/lib/src/storage/mod.rs index 156e3da2..fbdc8e7f 100644 --- a/lib/src/storage/mod.rs +++ b/lib/src/storage/mod.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(); diff --git a/lib/src/store.rs b/lib/src/store.rs index d3ff304e..1f3d6003 100644 --- a/lib/src/store.rs +++ b/lib/src/store.rs @@ -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() }