From 568e68a13d3f4bf7eac569109e7b32ec41f93e5b Mon Sep 17 00:00:00 2001 From: qima Date: Wed, 3 Apr 2024 18:18:04 +0800 Subject: [PATCH] fix(node): replication_fetch keep distance_range sync with record_store --- sn_networking/src/driver.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sn_networking/src/driver.rs b/sn_networking/src/driver.rs index 22d060b132..90fba56a97 100644 --- a/sn_networking/src/driver.rs +++ b/sn_networking/src/driver.rs @@ -624,6 +624,8 @@ impl SwarmDriver { if let Some(distance) = self.get_farthest_relevant_address_estimate(&closest_k_peers) { // set any new distance to fathest record in the store self.swarm.behaviour_mut().kademlia.store_mut().set_distance_range(distance); + // the distance range within the replication_fetcher shall be in sync as well + self.replication_fetcher.set_distance_range(distance); } } }