Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 2, 2024
1 parent 78dbef1 commit 87537ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cmd/stored_sec_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ impl<T> SecMap<SecPath<PathBuf, T>> {
info!("bake_ctx");
self.inner()
.into_iter()
// TODO: reduce read
.map(|(k, v)| v.read_buffer().and_then(|b| Ok((k, b))))
.try_collect::<SecMap<Vec<u8>>>()
}
Expand Down Expand Up @@ -139,7 +140,7 @@ impl SecMap<SecPath<PathBuf, InCfg>> {
.into_values()
.into_iter()
.map(|s| {
let mut f =
let mut f = // TODO: reduce read
File::open(&s.file).wrap_err_with(|| eyre!("open secret file error"))?;
let mut buffer = Vec::new();
f.read_to_end(&mut buffer)
Expand Down

0 comments on commit 87537ff

Please sign in to comment.