From 13a59c54aa1f57e15c3de002d798515868469ec4 Mon Sep 17 00:00:00 2001 From: Vincenzo Palazzo Date: Wed, 20 Mar 2024 00:33:51 +0100 Subject: [PATCH] fix(plugin): fix nop operation while handling notification Signed-off-by: Vincenzo Palazzo --- plugin/src/plugin.rs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin/src/plugin.rs b/plugin/src/plugin.rs index 5c71a9e..ccca087 100644 --- a/plugin/src/plugin.rs +++ b/plugin/src/plugin.rs @@ -210,12 +210,7 @@ impl<'a, T: 'a + Clone> Plugin { fn handle_notification(&'a mut self, name: &str, params: serde_json::Value) { let notification = self.rpc_notification.get(name).unwrap().clone(); - if let Err(json_res) = notification.call(self, params) { - self.log( - LogLevel::Debug, - format!("Notification end with and error: {json_res}").as_str(), - ); - } + notification.call_void(self, ¶ms); } pub fn register_hook(