From a8d421efdcee6822d719b31b80eaa7b556251a63 Mon Sep 17 00:00:00 2001 From: Ian Letourneau Date: Mon, 8 Sep 2025 11:45:46 -0400 Subject: [PATCH] revert changes to harmony_secret local_file --- harmony_secret/src/store/local_file.rs | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/harmony_secret/src/store/local_file.rs b/harmony_secret/src/store/local_file.rs index b71e7dc..c277335 100644 --- a/harmony_secret/src/store/local_file.rs +++ b/harmony_secret/src/store/local_file.rs @@ -29,20 +29,12 @@ impl SecretStore for LocalFileSecretStore { file_path.display() ); - let content = - tokio::fs::read(&file_path) - .await - .map_err(|_| SecretStoreError::NotFound { - namespace: ns.to_string(), - key: key.to_string(), - })?; - info!( - "Sum of all vec get {ns} {key} {:?}", - content - .iter() - .fold(0, |acc: u64, val: &u8| { acc + *val as u64 }) - ); - Ok(content) + tokio::fs::read(&file_path) + .await + .map_err(|_| SecretStoreError::NotFound { + namespace: ns.to_string(), + key: key.to_string(), + }) } async fn set_raw(&self, ns: &str, key: &str, val: &[u8]) -> Result<(), SecretStoreError> { @@ -64,12 +56,6 @@ impl SecretStore for LocalFileSecretStore { .map_err(|e| SecretStoreError::Store(Box::new(e)))?; } - info!( - "Sum of all vec set {ns} {key} {:?}", - val.iter() - .fold(0, |acc: u64, val: &u8| { acc + *val as u64 }) - ); - tokio::fs::write(&file_path, val) .await .map_err(|e| SecretStoreError::Store(Box::new(e)))