AcctIdx: Remove unnecessary Arc (#20412)

This commit is contained in:
Jeff Washington (jwash) 2021-10-04 17:05:16 -04:00 committed by GitHub
parent cbf427228c
commit 196cc8cfdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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(),
}
}