remove rocksdb

This commit is contained in:
Timo Kösters 2021-08-04 21:17:40 +02:00
parent 902404d48d
commit df727688ef
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
8 changed files with 3 additions and 345 deletions

View file

@ -17,15 +17,6 @@ pub fn millis_since_unix_epoch() -> u64 {
.as_millis() as u64
}
#[cfg(feature = "rocksdb")]
pub fn increment_rocksdb(
_new_key: &[u8],
old: Option<&[u8]>,
_operands: &mut rocksdb::MergeOperands,
) -> Option<Vec<u8>> {
increment(old)
}
pub fn increment(old: Option<&[u8]>) -> Option<Vec<u8>> {
let number = match old.map(|bytes| bytes.try_into()) {
Some(Ok(bytes)) => {