Fixed compiling for RocksDB only
This commit is contained in:
@@ -69,6 +69,8 @@ pub trait ConfigStore {
|
|||||||
|
|
||||||
#[async_trait]
|
#[async_trait]
|
||||||
impl ConfigStore for Config {
|
impl ConfigStore for Config {
|
||||||
|
#[allow(unused_variables)]
|
||||||
|
#[allow(unreachable_code)]
|
||||||
async fn parse_stores(&self) -> utils::config::Result<Stores> {
|
async fn parse_stores(&self) -> utils::config::Result<Stores> {
|
||||||
let mut config = Stores::default();
|
let mut config = Stores::default();
|
||||||
|
|
||||||
@@ -84,7 +86,7 @@ impl ConfigStore for Config {
|
|||||||
let prefix = ("store", id);
|
let prefix = ("store", id);
|
||||||
let store_id = id.to_string();
|
let store_id = id.to_string();
|
||||||
|
|
||||||
let lookup_store = match protocol.as_str() {
|
let lookup_store: Store = match protocol.as_str() {
|
||||||
#[cfg(feature = "rocks")]
|
#[cfg(feature = "rocks")]
|
||||||
"rocksdb" => {
|
"rocksdb" => {
|
||||||
let db: Store = RocksDbStore::open(self, prefix).await?.into();
|
let db: Store = RocksDbStore::open(self, prefix).await?.into();
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
* for more details.
|
* for more details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#[allow(unused_imports)]
|
||||||
use crate::{
|
use crate::{
|
||||||
write::{
|
write::{
|
||||||
key::{DeserializeBigEndian, KeySerializer},
|
key::{DeserializeBigEndian, KeySerializer},
|
||||||
|
|||||||
Reference in New Issue
Block a user