Skip to content

Commit

Permalink
fix(node): replication_fetch keep distance_range sync with record_store
Browse files Browse the repository at this point in the history
  • Loading branch information
maqi committed Apr 3, 2024
1 parent 954e6da commit 568e68a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sn_networking/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 568e68a

Please sign in to comment.