From ffba2efeedfbb15d84ae79d0eef26237a32ff17d Mon Sep 17 00:00:00 2001 From: alban Date: Sun, 16 Jul 2023 20:26:45 +0200 Subject: [PATCH] fix: conf for etherdream uses ip --- src/conf.rs | 2 +- tests/settings/valid_etherdream.toml | 2 +- tests/test_conf.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conf.rs b/src/conf.rs index 7d91cad..2996c7d 100644 --- a/src/conf.rs +++ b/src/conf.rs @@ -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)] diff --git a/tests/settings/valid_etherdream.toml b/tests/settings/valid_etherdream.toml index b136ccf..836e934 100644 --- a/tests/settings/valid_etherdream.toml +++ b/tests/settings/valid_etherdream.toml @@ -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" diff --git a/tests/test_conf.rs b/tests/test_conf.rs index 1c7b77b..0dcb123 100644 --- a/tests/test_conf.rs +++ b/tests/test_conf.rs @@ -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, }); }