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:
parent
c57d43f2f5
commit
5a0c14cf61
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue