Skip to content

Commit f0f75b7

Browse files
committed
fixup! Fix hard-coded MQTT topics for flows status and statistics
1 parent f7afd1b commit f0f75b7

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

crates/extensions/tedge_flows/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl FlowsMapperConfig {
6868
/// Panics if the topic prefix is not a valid MQTT topic name
6969
pub fn new(topic_prefix: &str) -> Self {
7070
FlowsMapperConfig {
71-
statistics_topic: Topic::new(&format!("{topic_prefix}/statistics")).unwrap(),
71+
statistics_topic: Topic::new(&format!("{topic_prefix}/status/metrics")).unwrap(),
7272
status_topic: Topic::new(&format!("{topic_prefix}/status/flows")).unwrap(),
7373
}
7474
}

crates/extensions/tedge_flows/tests/interval.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,6 @@ async fn interval_executes_when_time_exceeds_interval() {
372372
let count = || {
373373
captured_messages
374374
.retain(|msg| !msg.topic.as_ref().contains("status"))
375-
.retain(|msg| !msg.topic.as_ref().contains("statistics"))
376375
.count()
377376
};
378377

0 commit comments

Comments
 (0)