mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-21 22:31:48 +01:00
cln-plugin: don't require redundant method reference
also eliminate a rust warning
This commit is contained in:
parent
dfa326ed9f
commit
4f667e8a62
1 changed files with 2 additions and 1 deletions
|
@ -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")?;
|
||||
|
|
Loading…
Add table
Reference in a new issue