Skip to content

Commit

Permalink
Update rust-rocksdb to v0.21
Browse files Browse the repository at this point in the history
And drop support for the `oldcpu` feature, which required an outdated rocksdb
release (v0.12.4, released over 4 years ago)
  • Loading branch information
shesek committed Feb 13, 2024
1 parent 6668bdd commit aabc363
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ readme = "README.md"
edition = "2018"

[features]
default = [ "rocksdb" ]
liquid = [ "elements" ]
electrum-discovery = [ "electrum-client"]
oldcpu = [ "rocksdb-oldcpu" ]

[dependencies]
arraydeque = "0.5.1"
Expand All @@ -39,8 +37,7 @@ num_cpus = "1.12.0"
page_size = "0.6.0"
prometheus = "0.13"
rayon = "1.5.0"
rocksdb = { version = "0.17.0", optional = true }
rocksdb-oldcpu = { version = "0.12.4", optional = true, package = "rocksdb" }
rocksdb = "0.21"
rust-crypto = "0.2"
serde = "1.0.118"
serde_derive = "1.0.118"
Expand Down
2 changes: 1 addition & 1 deletion src/new_index/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl<'a> Iterator for ScanIterator<'a> {
if self.done {
return None;
}
let (key, value) = self.iter.next()?;
let (key, value) = self.iter.next()?.expect("valid iterator");
if !key.starts_with(&self.prefix) {
self.done = true;
return None;
Expand Down

0 comments on commit aabc363

Please sign in to comment.