Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 3, 2024
1 parent 31f815c commit b064aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/cmd/deploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ impl Profile {
let mut max = 0;
let res = match self.read_decrypted_mount_point() {
Err(e) if e.kind() == ErrorKind::NotFound => {
// TODO: noswap mount tmpfs
let support_ramfs =
SupportedFilesystems::new().and_then(|fss| Ok(fss.is_supported("ramfs")));
if !support_ramfs? {
Expand Down
13 changes: 3 additions & 10 deletions src/helper/stored.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ impl SecMap<SecPath<PathBuf, InStore>> {
.collect();
SecMap::<SecPath<PathBuf, InStore>>(res)
}
/// pass storageDirStore in
pub fn renced(self, per_host_dir: PathBuf, host_pubkey: String) -> Self {
let res = self
.inner()
Expand All @@ -134,15 +133,9 @@ impl SecMap<SecPath<PathBuf, InStore>> {
let mut dir = per_host_dir.clone();
let sec_path = v;
let sec_hash = sec_path
.read_buffer()
.and_then(|b| {
let mut hasher = blake3::Hasher::new();
hasher.update(b.as_slice());
hasher.update(host_pubkey.as_bytes());
let hash_final = hasher.finalize();
Ok(hash_final.to_string())
})
.expect("hash");
.calc_hash(host_pubkey.clone())
.expect("meow")
.to_string();
dir.push(sec_hash);

let renced_in_per_host_dir = dir;
Expand Down

0 comments on commit b064aa3

Please sign in to comment.