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)))