mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-02 19:56:14 -04:00
fanout seeding
This commit is contained in:
parent
918cd0de95
commit
ce3d333397
1 changed files with 5 additions and 6 deletions
|
@ -284,13 +284,12 @@ where
|
||||||
};
|
};
|
||||||
|
|
||||||
// Initialize closest nodes list
|
// Initialize closest nodes list
|
||||||
if init_fanout_queue.is_empty() {
|
|
||||||
if let Err(e) = self.clone().init_closest_nodes() {
|
if let Err(e) = self.clone().init_closest_nodes() {
|
||||||
return TimeoutOr::value(Err(e));
|
return TimeoutOr::value(Err(e));
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
|
// Ensure we include the most recent nodes
|
||||||
self.clone().add_to_fanout_queue(&init_fanout_queue);
|
self.clone().add_to_fanout_queue(&init_fanout_queue);
|
||||||
}
|
|
||||||
|
|
||||||
// Do a quick check to see if we're already done
|
// Do a quick check to see if we're already done
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue