diff --git a/Cargo.toml b/Cargo.toml index 099a5a5..70a55ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,7 +32,6 @@ tokio = { version = "1.29.0", features = ["macros", "rt"], optional = true } [target.'cfg(target_arch = "wasm32")'.dependencies] js-sys = { version = "0.3.68", optional = true } rexie = { version = "0.6.1", optional = true } -idb = { version = "0.6.2", optional = true } wasm-bindgen = { version = "0.2.91", optional = true } [dev-dependencies] diff --git a/src/indexed_db_blockstore.rs b/src/indexed_db_blockstore.rs index 803cd7e..60e1e04 100644 --- a/src/indexed_db_blockstore.rs +++ b/src/indexed_db_blockstore.rs @@ -135,12 +135,6 @@ impl From for Error { } } -impl From for Error { - fn from(value: idb::Error) -> Self { - Error::FatalDatabaseError(value.to_string()) - } -} - async fn has_key(store: &Store, key: &JsValue) -> Result { let key_range = KeyRange::only(key)?; let count = store.count(Some(key_range)).await?;