From a8a63a6e162401ad38330c1edc8b2c878dbef3a2 Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Mon, 27 Jan 2020 20:36:43 +0100 Subject: [PATCH] [style] conf: typo: ressources_usage -> resources_usage --- lib/core/conf/src/global_conf/v2.rs | 14 +++++++------- lib/core/conf/test/v1/conf-upgraded.json | 2 +- lib/core/conf/test/v1/conf.json | 2 +- lib/core/conf/test/v2/conf.json | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/core/conf/src/global_conf/v2.rs b/lib/core/conf/src/global_conf/v2.rs index c4c7dd9b..a9535fe0 100644 --- a/lib/core/conf/src/global_conf/v2.rs +++ b/lib/core/conf/src/global_conf/v2.rs @@ -32,7 +32,7 @@ pub struct DuRsGlobalUserConfV2 { /// Name of the module used by default for synchronization pub default_sync_module: Option<ModuleName>, /// Ressources usage - pub ressources_usage: Option<ResourcesUsage>, + pub resources_usage: Option<ResourcesUsage>, /// Disabled modules pub disabled: Option<HashSet<ModuleName>>, /// Enabled modules @@ -49,7 +49,7 @@ pub struct DuRsGlobalConfV2 { /// Name of the module used by default for synchronization pub default_sync_module: ModuleName, /// Ressources usage - pub ressources_usage: ResourcesUsage, + pub resources_usage: ResourcesUsage, /// Disabled modules pub disabled: HashSet<ModuleName>, /// Enabled modules @@ -62,7 +62,7 @@ impl Default for DuRsGlobalConfV2 { currency: CurrencyName(String::from(constants::DEFAULT_CURRENCY)), my_node_id: crate::generate_random_node_id(), default_sync_module: ModuleName(String::from(constants::DEFAULT_DEFAULT_SYNC_MODULE)), - ressources_usage: ResourcesUsage::default(), + resources_usage: ResourcesUsage::default(), disabled: HashSet::with_capacity(0), enabled: HashSet::with_capacity(0), } @@ -75,7 +75,7 @@ impl From<DuRsConfV1> for DuRsGlobalConfV2 { currency: conf_v1.currency, my_node_id: conf_v1.my_node_id, default_sync_module: ModuleName(String::from(constants::DEFAULT_DEFAULT_SYNC_MODULE)), - ressources_usage: ResourcesUsage::default(), + resources_usage: ResourcesUsage::default(), disabled: conf_v1.disabled, enabled: conf_v1.enabled, } @@ -91,9 +91,9 @@ impl DuRsGlobalConfV2 { default_sync_module: global_user_conf .default_sync_module .unwrap_or(self.default_sync_module), - ressources_usage: global_user_conf - .ressources_usage - .unwrap_or(self.ressources_usage), + resources_usage: global_user_conf + .resources_usage + .unwrap_or(self.resources_usage), disabled: global_user_conf.disabled.unwrap_or(self.disabled), enabled: global_user_conf.enabled.unwrap_or(self.enabled), } diff --git a/lib/core/conf/test/v1/conf-upgraded.json b/lib/core/conf/test/v1/conf-upgraded.json index 2614b3bf..1ac7a1f9 100644 --- a/lib/core/conf/test/v1/conf-upgraded.json +++ b/lib/core/conf/test/v1/conf-upgraded.json @@ -4,7 +4,7 @@ "currency": "g1", "my_node_id": 1191678020, "default_sync_module": "ws2p1", - "ressources_usage": { + "resources_usage": { "cpu_usage": "Large", "network_usage": "Large", "memory_usage": "Large", diff --git a/lib/core/conf/test/v1/conf.json b/lib/core/conf/test/v1/conf.json index 2614b3bf..1ac7a1f9 100644 --- a/lib/core/conf/test/v1/conf.json +++ b/lib/core/conf/test/v1/conf.json @@ -4,7 +4,7 @@ "currency": "g1", "my_node_id": 1191678020, "default_sync_module": "ws2p1", - "ressources_usage": { + "resources_usage": { "cpu_usage": "Large", "network_usage": "Large", "memory_usage": "Large", diff --git a/lib/core/conf/test/v2/conf.json b/lib/core/conf/test/v2/conf.json index c586e6aa..c80ab0a9 100644 --- a/lib/core/conf/test/v2/conf.json +++ b/lib/core/conf/test/v2/conf.json @@ -4,7 +4,7 @@ "currency":"g1", "my_node_id": 1191678020, "default_sync_module": "ws2pv1", - "ressources_usage": { + "resources_usage": { "cpu_usage": "Large", "network_usage": "Large", "memory_usage": "Large", -- GitLab