AcctIdx: Remove unnecessary Arc (#20412)
This commit is contained in:
committed by
GitHub
parent
cbf427228c
commit
196cc8cfdf
@ -10,7 +10,7 @@ use std::path::PathBuf;
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use std::sync::{RwLock, RwLockWriteGuard};
|
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> {
|
pub struct BucketApi<T: Clone + Copy> {
|
||||||
drives: Arc<Vec<PathBuf>>,
|
drives: Arc<Vec<PathBuf>>,
|
||||||
@ -30,7 +30,7 @@ impl<T: Clone + Copy> BucketApi<T> {
|
|||||||
drives,
|
drives,
|
||||||
max_search,
|
max_search,
|
||||||
stats,
|
stats,
|
||||||
bucket: Arc::default(),
|
bucket: RwLock::default(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user