diff --git a/crates/blob/src/account.rs b/crates/blob/src/account.rs index f8d2fd1..2af2717 100644 --- a/crates/blob/src/account.rs +++ b/crates/blob/src/account.rs @@ -15,7 +15,7 @@ pub struct AccountHandle { id: String, dir: PathBuf, inner: RwLock, - pub write_mutex: Mutex<()>, + pub(crate) write_mutex: Mutex<()>, } impl AccountHandle { @@ -33,7 +33,7 @@ impl AccountHandle { if !dir.exists() { return Err(Error::AccountNotFound(account_id.to_string())); } - let inner = AccountInner::open(&dir, account_id)?; + let inner = AccountInner::open(&dir)?; Ok(Arc::new(Self { id: account_id.to_string(), dir, @@ -72,13 +72,13 @@ impl AccountHandle { pub struct AccountInner { dir: PathBuf, - pub meta: AccountMeta, + meta: AccountMeta, active_writer: SegmentWriter, readers: HashMap, } impl AccountInner { - fn open(dir: &Path, _account_id: &str) -> Result { + fn open(dir: &Path) -> Result { let meta = AccountMeta::load(dir)?; let seg_path = dir