Skip to content

Commit

Permalink
fix(node): avoid false alert on FailedLocalRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi authored and joshuef committed Apr 18, 2024
1 parent bc4848e commit 76ef35e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sn_networking/src/record_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 76ef35e

Please sign in to comment.