File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 1
1
#![ recursion_limit = "1024" ]
2
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
3
#[ macro_use]
10
4
extern crate clap;
11
5
#[ macro_use]
Original file line number Diff line number Diff line change @@ -163,10 +163,7 @@ impl DB {
163
163
rows. sort_unstable_by ( |a, b| a. key . cmp ( & b. key ) ) ;
164
164
let mut batch = rocksdb:: WriteBatch :: default ( ) ;
165
165
for row in rows {
166
- #[ cfg( not( feature = "oldcpu" ) ) ]
167
166
batch. put ( & row. key , & row. value ) ;
168
- #[ cfg( feature = "oldcpu" ) ]
169
- batch. put ( & row. key , & row. value ) . unwrap ( ) ;
170
167
}
171
168
let do_flush = match flush {
172
169
DBFlush :: Enable => true ,
You can’t perform that action at this time.
0 commit comments