fix: conf for etherdream uses ip

This commit is contained in:
alban 2023-07-16 20:26:45 +02:00
parent ee4d0e049f
commit ffba2efeed
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ pub struct HeliosConf {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct EtherDreamConf {
pub url: String
pub ip: String
}
#[derive(Serialize, Deserialize, Debug, Clone)]

View File

@ -12,4 +12,4 @@ redis_url = "redis://127.0.0.1:6379/"
# For Etherdream. IP of the DAC
[dac.etherdream]
url = "192.168.1.68"
ip = "192.168.1.68"

View File

@ -28,7 +28,7 @@ fn it_finds_struct_fields() {
fn it_finds_etherdream_fields() {
let config = Conf::new("tests/settings/valid_etherdream").unwrap();
assert!(match config.dac {
DacFamily::Etherdream(EtherDreamConf { url }) if url == "192.168.1.68" => true,
DacFamily::Etherdream(EtherDreamConf { ip }) if ip == "192.168.1.68" => true,
_ => false,
});
}