diff --git a/bucket_map/src/bucket_api.rs b/bucket_map/src/bucket_api.rs index 8dbe08bc92..0fa079dd03 100644 --- a/bucket_map/src/bucket_api.rs +++ b/bucket_map/src/bucket_api.rs @@ -10,7 +10,7 @@ use std::path::PathBuf; use std::sync::Arc; use std::sync::{RwLock, RwLockWriteGuard}; -type LockedBucket = Arc>>>; +type LockedBucket = RwLock>>; pub struct BucketApi { drives: Arc>, @@ -30,7 +30,7 @@ impl BucketApi { drives, max_search, stats, - bucket: Arc::default(), + bucket: RwLock::default(), } }