mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 10:30:41 +08:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user