From 4bcd48f5d4eb3db453ae94f2c10f8a4f44fb7283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Mon, 21 Mar 2022 09:35:25 +0100 Subject: Separate Message/ReceiverBundle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Previously they were mixed up, having them separate makes it clear that the bundle made by the `make_receiver_bundle` macro are only meant to be used for _receiving_ plugins. Signed-off-by: Marcel Müller --- crates/core/tedge_api/examples/heartbeat.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/core/tedge_api/examples') diff --git a/crates/core/tedge_api/examples/heartbeat.rs b/crates/core/tedge_api/examples/heartbeat.rs index d2fc2f21..c882b99f 100644 --- a/crates/core/tedge_api/examples/heartbeat.rs +++ b/crates/core/tedge_api/examples/heartbeat.rs @@ -171,7 +171,7 @@ struct CriticalServiceBuilder; // declare a set of messages that the CriticalService can receive. // In this example, it can only receive a Heartbeat. -tedge_api::make_message_bundle!(struct HeartbeatMessages(Heartbeat)); +tedge_api::make_receiver_bundle!(struct HeartbeatMessages(Heartbeat)); #[async_trait] impl PluginBuilder for CriticalServiceBuilder { @@ -300,7 +300,7 @@ impl Communication { } impl PluginDirectory for Communication { - fn get_address_for( + fn get_address_for( &self, name: &str, ) -> Result, PluginError> { -- cgit v1.2.3