Skip to content

Commit

Permalink
fix: Remove unneded idb dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek committed Aug 20, 2024
1 parent dca5226 commit f139986
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 0 additions & 6 deletions src/indexed_db_blockstore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,6 @@ impl From<rexie::Error> for Error {
}
}

impl From<idb::Error> for Error {
fn from(value: idb::Error) -> Self {
Error::FatalDatabaseError(value.to_string())
}
}

async fn has_key(store: &Store, key: &JsValue) -> Result<bool> {
let key_range = KeyRange::only(key)?;
let count = store.count(Some(key_range)).await?;
Expand Down

0 comments on commit f139986

Please sign in to comment.