From 95e0ff7f899f5cb251782791dd6f5b3a98ff471f Mon Sep 17 00:00:00 2001 From: Josh Wilson Date: Mon, 23 Oct 2023 13:52:40 +0200 Subject: [PATCH] chore(networking): remove unused content hash This could take a long time for larger records --- sn_networking/src/record_store.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sn_networking/src/record_store.rs b/sn_networking/src/record_store.rs index 40a72d4e35..6b71c0f387 100644 --- a/sn_networking/src/record_store.rs +++ b/sn_networking/src/record_store.rs @@ -26,7 +26,6 @@ use std::{ vec, }; use tokio::sync::mpsc; -use xor_name::XorName; /// Max number of records a node can store const MAX_RECORDS_COUNT: usize = 2048; @@ -208,9 +207,8 @@ impl NodeRecordStore { /// Warning: PUTs a `Record` to the store without validation /// Should be used in context where the `Record` is trusted pub(crate) fn put_verified(&mut self, r: Record) -> Result<()> { - let content_hash = XorName::from_content(&r.value); let record_key = PrettyPrintRecordKey::from(r.key.clone()); - trace!("PUT a verified Record: {record_key:?} (content_hash {content_hash:?})"); + trace!("PUT a verified Record: {record_key:?}"); self.prune_storage_if_needed_for_record(&r.key)?;