Skip to content

Commit

Permalink
fixup! test: PoC deterministic bridge testing
Browse files Browse the repository at this point in the history
Signed-off-by: James Rhodes <[email protected]>
  • Loading branch information
jarhodes314 committed Feb 17, 2025
1 parent 17c6cf1 commit 2b166b6
Show file tree
Hide file tree
Showing 3 changed files with 237 additions and 72 deletions.
5 changes: 3 additions & 2 deletions crates/extensions/tedge_mqtt_bridge/src/health.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use crate::overall_status;
use crate::BridgeAsyncClient;
use crate::BridgeMessageSender;
use crate::MqttClient;
use crate::Status;
use futures::channel::mpsc;
use futures::SinkExt;
Expand All @@ -25,9 +26,9 @@ pub struct BridgeHealthMonitor {
}

impl BridgeHealthMonitor {
pub(crate) fn new(
pub(crate) fn new<C: MqttClient>(
topic: String,
bridge_half: &BridgeAsyncClient,
bridge_half: &BridgeAsyncClient<C>,
) -> (mpsc::Sender<(&'static str, Status)>, Self) {
let (tx, rx_status) = mpsc::channel(10);
(
Expand Down
Loading

0 comments on commit 2b166b6

Please sign in to comment.