AcctIdx: Remove unnecessary Arc (#20412)
This commit is contained in:
parent
cbf427228c
commit
196cc8cfdf
|
@ -10,7 +10,7 @@ use std::path::PathBuf;
|
|||
use std::sync::Arc;
|
||||
use std::sync::{RwLock, RwLockWriteGuard};
|
||||
|
||||
type LockedBucket<T> = Arc<RwLock<Option<Bucket<T>>>>;
|
||||
type LockedBucket<T> = RwLock<Option<Bucket<T>>>;
|
||||
|
||||
pub struct BucketApi<T: Clone + Copy> {
|
||||
drives: Arc<Vec<PathBuf>>,
|
||||
|
@ -30,7 +30,7 @@ impl<T: Clone + Copy> BucketApi<T> {
|
|||
drives,
|
||||
max_search,
|
||||
stats,
|
||||
bucket: Arc::default(),
|
||||
bucket: RwLock::default(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue