mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
fanout seeding
This commit is contained in:
parent
918cd0de95
commit
ce3d333397
@ -284,14 +284,13 @@ where
|
||||
};
|
||||
|
||||
// Initialize closest nodes list
|
||||
if init_fanout_queue.is_empty() {
|
||||
if let Err(e) = self.clone().init_closest_nodes() {
|
||||
return TimeoutOr::value(Err(e));
|
||||
}
|
||||
} else {
|
||||
self.clone().add_to_fanout_queue(&init_fanout_queue);
|
||||
if let Err(e) = self.clone().init_closest_nodes() {
|
||||
return TimeoutOr::value(Err(e));
|
||||
}
|
||||
|
||||
// Ensure we include the most recent nodes
|
||||
self.clone().add_to_fanout_queue(&init_fanout_queue);
|
||||
|
||||
// Do a quick check to see if we're already done
|
||||
{
|
||||
let mut ctx = self.context.lock();
|
||||
|
Loading…
Reference in New Issue
Block a user