From 76ef35eecacade00e52fb012cfb690a916b530ec Mon Sep 17 00:00:00 2001 From: qima Date: Wed, 17 Apr 2024 23:39:34 +0800 Subject: [PATCH] fix(node): avoid false alert on FailedLocalRecord --- sn_networking/src/record_store.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sn_networking/src/record_store.rs b/sn_networking/src/record_store.rs index 25e346a8b1..b5c4433d45 100644 --- a/sn_networking/src/record_store.rs +++ b/sn_networking/src/record_store.rs @@ -472,12 +472,7 @@ impl NodeRecordStore { let record_key = PrettyPrintRecordKey::from(&r.key).into_owned(); trace!("PUT a verified Record: {record_key:?}"); - // notify fetcher - if let Err(error) = self.prune_records_if_needed(&r.key) { - let cmd = SwarmCmd::RemoveFailedLocalRecord { key: r.key }; - send_swarm_cmd(self.swarm_cmd_sender.clone(), cmd); - return Err(error); - } + self.prune_records_if_needed(&r.key)?; let filename = Self::generate_filename(&r.key); let file_path = self.config.storage_dir.join(&filename);