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 11#![ recursion_limit = "1024" ]
22
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-
93#[ macro_use]
104extern crate clap;
115#[ macro_use]
Original file line number Diff line number Diff line change @@ -163,10 +163,7 @@ impl DB {
163163 rows. sort_unstable_by ( |a, b| a. key . cmp ( & b. key ) ) ;
164164 let mut batch = rocksdb:: WriteBatch :: default ( ) ;
165165 for row in rows {
166- #[ cfg( not( feature = "oldcpu" ) ) ]
167166 batch. put ( & row. key , & row. value ) ;
168- #[ cfg( feature = "oldcpu" ) ]
169- batch. put ( & row. key , & row. value ) . unwrap ( ) ;
170167 }
171168 let do_flush = match flush {
172169 DBFlush :: Enable => true ,
You can’t perform that action at this time.
0 commit comments