diff options
author | Albin Suresh <albin.suresh@softwareag.com> | 2022-05-27 17:47:09 +0530 |
---|---|---|
committer | Albin Suresh <albin.suresh@softwareag.com> | 2022-05-27 17:47:09 +0530 |
commit | 34a3f2f29ee2e6eaeadf5a1f41f85f841ef3d4bb (patch) | |
tree | 612c34e477dd1ba7d094a59398e2e8dd433c77be /crates/core/tedge_mapper | |
parent | a10c6c119899a8a9b36884e4e93e3f6bd873d793 (diff) |
Unit test for latest health response validation logic
Diffstat (limited to 'crates/core/tedge_mapper')
-rw-r--r-- | crates/core/tedge_mapper/src/collectd/monitor.rs | 2 | ||||
-rw-r--r-- | crates/core/tedge_mapper/src/core/mapper.rs | 2 |
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); |