Skip to content

Commit

Permalink
fix(plugin): fix nop operation while handling notification
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <[email protected]>
  • Loading branch information
vincenzopalazzo committed Mar 19, 2024
1 parent 1097ef9 commit 13a59c5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugin/src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,7 @@ impl<'a, T: 'a + Clone> Plugin<T> {

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, &params);
}

pub fn register_hook<F: 'static>(
Expand Down

0 comments on commit 13a59c5

Please sign in to comment.