Skip to content

Commit

Permalink
Remove seed resolution validation
Browse files Browse the repository at this point in the history
  • Loading branch information
rdettai committed Mar 6, 2024
1 parent 55b10d2 commit d54479a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions quickwit/quickwit-config/src/node_config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -458,12 +458,6 @@ impl NodeConfig {
}
peer_seed_addrs.push(peer_seed_addr.to_string())
}
if !self.peer_seeds.is_empty() && peer_seed_addrs.is_empty() {
bail!(
"failed to resolve any of the peer seed addresses: `{}`",
self.peer_seeds.join(", ")
)
}
Ok(peer_seed_addrs)
}

Expand Down
10 changes: 0 additions & 10 deletions quickwit/quickwit-config/src/node_config/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -863,16 +863,6 @@ mod tests {
.unwrap();
assert!(node_config.peer_seed_addrs().await.unwrap().is_empty());
}
{
let node_config = NodeConfigBuilder {
peer_seeds: ConfigValue::for_test(List(vec!["unresolvable-host".to_string()])),
..Default::default()
}
.build_and_validate(&HashMap::new())
.await
.unwrap();
assert!(node_config.peer_seed_addrs().await.is_err());
}
{
let node_config = NodeConfigBuilder {
rest_config_builder: RestConfigBuilder {
Expand Down

0 comments on commit d54479a

Please sign in to comment.