radicle: ensure preferred seeds are announced to

Ensure that the preferred seeds that are not in the synced set are announced to.
This commit is contained in:
Fintan Halpenny 2025-05-29 16:57:29 +02:00
parent c57d43f2f5
commit 5a0c14cf61
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ impl Announcer {
.into());
}
// N.b extend the unsynced set with any preferred seeds that are not yet
// synced
config
.unsynced
.extend(config.preferred_seeds.difference(&config.synced).copied());
let replicas = config.replicas.min(config.unsynced.len());
let announcer = Self {
local_node: config.local_node,