1
0
Fork 0

Fix validation for exporter mode

This commit is contained in:
clerie 2023-01-11 21:32:23 +01:00
parent 3c3936e677
commit c0cb8db954
1 changed files with 2 additions and 2 deletions

View File

@ -45,11 +45,11 @@ impl AppState{
println!("operationmode is not set");
valid = false;
}
if self.prometheus_url == String::from("") {
if self.prometheus_url == String::from("") && self.operationmode == OperationMode::Validator {
println!("Prometheus url is not specified");
valid = false;
}
if self.hydra_url == String::from("") {
if self.hydra_url == String::from("") && self.operationmode == OperationMode::Validator {
println!("Hydra url is not specified");
valid = false;
}