summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-05-06 20:21:25 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-05-10 15:04:55 +0200
commit69d08d17ac9f9e796cc7c43c129250ff9e10b7d0 (patch)
tree6463866031fe55a85db3d81fea302c47d6bd0105 /plugins
parent0c1f021948214a23bd4d1dd8c71d128dd47b97f6 (diff)
plugin_log: Adapt to Plugin::handle_message() interface change
In commit abab64c856c0c299b13fcc1857a5b78f449e4a9e ("Add AnyMessage & AnyMessages") The `ReplySender` was renamed to `ReplySenderFor` and its interface was changed so that we can specify the plugin_log message type of the original instead of the message type of the reply. This commit adapts the plugin_log implementation for this change. Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/plugin_log/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/plugin_log/src/lib.rs b/plugins/plugin_log/src/lib.rs
index 12a5146b..a2302395 100644
--- a/plugins/plugin_log/src/lib.rs
+++ b/plugins/plugin_log/src/lib.rs
@@ -2,7 +2,7 @@ use std::marker::PhantomData;
use async_trait::async_trait;
-use tedge_api::address::ReplySender;
+use tedge_api::address::ReplySenderFor;
use tedge_api::plugin::BuiltPlugin;
use tedge_api::plugin::DoesHandle;
use tedge_api::plugin::Handle;
@@ -138,7 +138,7 @@ where
async fn handle_message(
&self,
message: M,
- _sender: ReplySender<M::Reply>,
+ _sender: ReplySenderFor<M>,
) -> Result<(), PluginError> {
match self.config.level {
log::Level::Trace => {