summaryrefslogtreecommitdiffstats
path: root/crates/core/tedge_mapper/src
diff options
context:
space:
mode:
authorAlbin Suresh <albin.suresh@softwareag.com>2022-05-27 17:47:09 +0530
committerAlbin Suresh <albin.suresh@softwareag.com>2022-05-27 17:47:09 +0530
commit34a3f2f29ee2e6eaeadf5a1f41f85f841ef3d4bb (patch)
tree612c34e477dd1ba7d094a59398e2e8dd433c77be /crates/core/tedge_mapper/src
parenta10c6c119899a8a9b36884e4e93e3f6bd873d793 (diff)
Unit test for latest health response validation logic
Diffstat (limited to 'crates/core/tedge_mapper/src')
-rw-r--r--crates/core/tedge_mapper/src/collectd/monitor.rs2
-rw-r--r--crates/core/tedge_mapper/src/core/mapper.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crates/core/tedge_mapper/src/collectd/monitor.rs b/crates/core/tedge_mapper/src/collectd/monitor.rs
index 61de30a5..b21f6dcf 100644
--- a/crates/core/tedge_mapper/src/collectd/monitor.rs
+++ b/crates/core/tedge_mapper/src/collectd/monitor.rs
@@ -111,7 +111,7 @@ impl DeviceMonitor {
let health_status = json!({
"status": "up",
"pid": process::id(),
- "time": OffsetDateTime::now_utc().unix_timestamp()
+ "time": OffsetDateTime::now_utc().unix_timestamp(),
})
.to_string();
let health_message = Message::new(&health_status_topic, health_status);
diff --git a/crates/core/tedge_mapper/src/core/mapper.rs b/crates/core/tedge_mapper/src/core/mapper.rs
index 58a212a1..fb5713f4 100644
--- a/crates/core/tedge_mapper/src/core/mapper.rs
+++ b/crates/core/tedge_mapper/src/core/mapper.rs
@@ -135,7 +135,7 @@ impl Mapper {
let health_status = json!({
"status": "up",
"pid": process::id(),
- "time": OffsetDateTime::now_utc().unix_timestamp()
+ "time": OffsetDateTime::now_utc().unix_timestamp(),
})
.to_string();
let health_message = Message::new(&self.health_status_topic, health_status);