diff --git a/plugins/grpc-plugin/src/main.rs b/plugins/grpc-plugin/src/main.rs index 4839ae5b5479..141e0952a39d 100644 --- a/plugins/grpc-plugin/src/main.rs +++ b/plugins/grpc-plugin/src/main.rs @@ -138,9 +138,12 @@ async fn handle_notification(plugin: Plugin, value: serde_json::Val log::debug!("Failed to parse notification from lightningd {:?}", err); } Ok(notification) => { - if let Err(err) = plugin.state().events.send(notification) { - log::warn!("Failed to broadcast notification {:?}", err) - } + /* Depending on whether or not there is a wildcard + * subscription we may receive notifications for which we + * don't have a handler. We suppress the `SendError` which + * would indicate there is no subscriber for the given + * topic. */ + let _ = plugin.state().events.send(notification); } }; Ok(())