From 87537ff9fe87f8be65716788885aad8755863e43 Mon Sep 17 00:00:00 2001 From: oluceps Date: Sun, 3 Nov 2024 07:10:24 +0800 Subject: [PATCH] + --- src/cmd/stored_sec_path.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cmd/stored_sec_path.rs b/src/cmd/stored_sec_path.rs index f891d69..ecb848a 100644 --- a/src/cmd/stored_sec_path.rs +++ b/src/cmd/stored_sec_path.rs @@ -96,6 +96,7 @@ impl SecMap> { info!("bake_ctx"); self.inner() .into_iter() + // TODO: reduce read .map(|(k, v)| v.read_buffer().and_then(|b| Ok((k, b)))) .try_collect::>>() } @@ -139,7 +140,7 @@ impl SecMap> { .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)