cln-plugin: don't require redundant method reference

also eliminate a rust warning
This commit is contained in:
Chris Guida 2023-10-27 12:11:45 -06:00 committed by Peter Neuroth
parent dfa326ed9f
commit 4f667e8a62

View file

@ -68,6 +68,7 @@ where
rpcmethods: HashMap<String, AsyncCallback<S>>,
hooks: HashMap<String, AsyncCallback<S>>,
subscriptions: HashMap<String, AsyncNotificationCallback<S>>,
#[allow(dead_code)] // unsure why rust thinks this field isn't used
notifications: Vec<NotificationTopic>,
}
@ -682,7 +683,7 @@ where
.send(json!({
"jsonrpc": "2.0",
"method": method,
"params": {method: v},
"params": v,
}))
.await
.context("sending custom notification")?;