We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a70de9 commit 6261aa8Copy full SHA for 6261aa8
2 files changed
src/lib.rs
@@ -1,11 +1,5 @@
1
#![recursion_limit = "1024"]
2
3
-// See https://github.com/romanz/electrs/issues/193 & https://github.com/rust-rocksdb/rust-rocksdb/issues/327
4
-#[cfg(not(feature = "oldcpu"))]
5
-extern crate rocksdb;
6
-#[cfg(feature = "oldcpu")]
7
-extern crate rocksdb_oldcpu as rocksdb;
8
-
9
#[macro_use]
10
extern crate clap;
11
src/new_index/db.rs
@@ -163,10 +163,7 @@ impl DB {
163
rows.sort_unstable_by(|a, b| a.key.cmp(&b.key));
164
let mut batch = rocksdb::WriteBatch::default();
165
for row in rows {
166
- #[cfg(not(feature = "oldcpu"))]
167
batch.put(&row.key, &row.value);
168
- #[cfg(feature = "oldcpu")]
169
- batch.put(&row.key, &row.value).unwrap();
170
}
171
let do_flush = match flush {
172
DBFlush::Enable => true,
0 commit comments