refactor: fix warnings

This commit is contained in:
Timo Kösters 2022-01-13 22:47:30 +01:00
parent 6fa01aa982
commit 16f826773b
No known key found for this signature in database
GPG key ID: 356E705610F626D5
3 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
use super::{super::Config, watchers::Watchers, DatabaseEngine, Tree};
use crate::{utils, Result};
use std::{future::Future, pin::Pin, sync::Arc, collections::HashMap, sync::RwLock};
use std::{future::Future, pin::Pin, sync::Arc, sync::RwLock};
pub struct Engine {
rocks: rocksdb::DBWithThreadMode<rocksdb::MultiThreaded>,
@ -13,7 +13,7 @@ pub struct RocksDbEngineTree<'a> {
db: Arc<Engine>,
name: &'a str,
watchers: Watchers,
write_lock: RwLock<()>
write_lock: RwLock<()>,
}
fn db_options(cache_capacity_bytes: usize, rocksdb_cache: &rocksdb::Cache) -> rocksdb::Options {