Fix validation for exporter mode
This commit is contained in:
		| @@ -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; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user