From c6d77aa9f34e7cdf59c17204bebcdbc4f40307ce Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Sat, 10 Jul 2021 17:25:56 +0000 Subject: [PATCH] feat: remove lock Building is locked on nix store anyway --- --- a/src/db/db.rs +++ b/src/db/db.rs @@ -15,7 +15,6 @@ struct DbInternal { root: PathBuf, locked_paths: HashSet, - _lockfile: lockfile::Lockfile, } pub trait DbData: DeserializeOwned + Serialize + Default { @@ -32,13 +31,9 @@ pub fn new(root: impl AsRef) -> Result { let root: &Path = root.as_ref(); std::fs::create_dir_all(&root).context("db root")?; - let mut lockfile = root.to_owned(); - lockfile.push(".lock"); - let lockfile = lockfile::Lockfile::create(lockfile).context("db lock")?; Ok(Db(Arc::new(Mutex::new(DbInternal { root: root.to_owned(), locked_paths: HashSet::new(), - _lockfile: lockfile, })))) } -- gitstuff