From 196cc8cfdfc1e7aeccd3899e725e87a153d07441 Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" <75863576+jeffwashington@users.noreply.github.com> Date: Mon, 4 Oct 2021 17:05:16 -0400 Subject: [PATCH] AcctIdx: Remove unnecessary Arc (#20412) --- bucket_map/src/bucket_api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(), } }