From 562015df24f552fc261a950bd2a138b776229a3c Mon Sep 17 00:00:00 2001 From: mdecimus Date: Thu, 21 Dec 2023 18:53:21 +0100 Subject: [PATCH] Fixed compiling for RocksDB only --- crates/store/src/config.rs | 4 +++- crates/store/src/dispatch/lookup.rs | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/store/src/config.rs b/crates/store/src/config.rs index eb96bac4..355e4106 100644 --- a/crates/store/src/config.rs +++ b/crates/store/src/config.rs @@ -69,6 +69,8 @@ pub trait ConfigStore { #[async_trait] impl ConfigStore for Config { + #[allow(unused_variables)] + #[allow(unreachable_code)] async fn parse_stores(&self) -> utils::config::Result { let mut config = Stores::default(); @@ -84,7 +86,7 @@ impl ConfigStore for Config { let prefix = ("store", id); let store_id = id.to_string(); - let lookup_store = match protocol.as_str() { + let lookup_store: Store = match protocol.as_str() { #[cfg(feature = "rocks")] "rocksdb" => { let db: Store = RocksDbStore::open(self, prefix).await?.into(); diff --git a/crates/store/src/dispatch/lookup.rs b/crates/store/src/dispatch/lookup.rs index 78039676..580f9f43 100644 --- a/crates/store/src/dispatch/lookup.rs +++ b/crates/store/src/dispatch/lookup.rs @@ -21,6 +21,7 @@ * for more details. */ +#[allow(unused_imports)] use crate::{ write::{ key::{DeserializeBigEndian, KeySerializer},