Skip to content

Commit a23f6ef

Browse files
authored
[wicketd] Fix init of rss config trust quorum peers (#3774)
Previously we were pickinig all available sleds found via DDM. Know we only chose those chosen explicitly in the RSS configuration.
1 parent 1815f7c commit a23f6ef

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

wicketd/src/rss_config.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,12 @@ impl CurrentRssConfig {
174174
const TRUST_QUORUM_MIN_SIZE: usize = 3;
175175
let trust_quorum_peers: Option<
176176
Vec<bootstrap_agent_client::types::Baseboard>,
177-
> = if known_bootstrap_sleds.len() >= TRUST_QUORUM_MIN_SIZE {
177+
> = if self.bootstrap_sleds.len() >= TRUST_QUORUM_MIN_SIZE {
178178
Some(
179-
known_bootstrap_sleds.keys().cloned().map(Into::into).collect(),
179+
self.bootstrap_sleds
180+
.iter()
181+
.map(|sled| sled.baseboard.clone().into())
182+
.collect(),
180183
)
181184
} else {
182185
warn!(

0 commit comments

Comments
 (0)