Skip to content

Commit

Permalink
cln-plugin: don't require redundant method reference
Browse files Browse the repository at this point in the history
also eliminate a rust warning
  • Loading branch information
chrisguida authored and nepet committed Oct 30, 2023
1 parent dfa326e commit 4f667e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
}

Expand Down Expand Up @@ -682,7 +683,7 @@ where
.send(json!({
"jsonrpc": "2.0",
"method": method,
"params": {method: v},
"params": v,
}))
.await
.context("sending custom notification")?;
Expand Down

0 comments on commit 4f667e8

Please sign in to comment.