Fix validation for exporter mode
This commit is contained in:
parent
3c3936e677
commit
c0cb8db954
@ -45,11 +45,11 @@ impl AppState{
|
|||||||
println!("operationmode is not set");
|
println!("operationmode is not set");
|
||||||
valid = false;
|
valid = false;
|
||||||
}
|
}
|
||||||
if self.prometheus_url == String::from("") {
|
if self.prometheus_url == String::from("") && self.operationmode == OperationMode::Validator {
|
||||||
println!("Prometheus url is not specified");
|
println!("Prometheus url is not specified");
|
||||||
valid = false;
|
valid = false;
|
||||||
}
|
}
|
||||||
if self.hydra_url == String::from("") {
|
if self.hydra_url == String::from("") && self.operationmode == OperationMode::Validator {
|
||||||
println!("Hydra url is not specified");
|
println!("Hydra url is not specified");
|
||||||
valid = false;
|
valid = false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user