mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-21 08:04:26 +01:00
rs: Run hooks, methods and notification handlers in tokio tasks
Changelog-Changed: cln-plugin: Hooks, notifications and RPC methods now run asynchronously allowing for re-entrant handlers
This commit is contained in:
committed by
ShahanaFarooqui
parent
db3707f957
commit
f69da84256
@@ -41,20 +41,20 @@ pub(crate) enum Request {
|
||||
#[serde(tag = "method", content = "params")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub(crate) enum Notification {
|
||||
// ChannelOpened,
|
||||
// ChannelOpenFailed,
|
||||
// ChannelStateChanged,
|
||||
// Connect,
|
||||
// Disconnect,
|
||||
// InvoicePayment,
|
||||
// InvoiceCreation,
|
||||
// Warning,
|
||||
// ForwardEvent,
|
||||
// SendpaySuccess,
|
||||
// SendpayFailure,
|
||||
// CoinMovement,
|
||||
// OpenchannelPeerSigs,
|
||||
// Shutdown,
|
||||
// ChannelOpened,
|
||||
// ChannelOpenFailed,
|
||||
// ChannelStateChanged,
|
||||
// Connect,
|
||||
// Disconnect,
|
||||
// InvoicePayment,
|
||||
// InvoiceCreation,
|
||||
// Warning,
|
||||
// ForwardEvent,
|
||||
// SendpaySuccess,
|
||||
// SendpayFailure,
|
||||
// CoinMovement,
|
||||
// OpenchannelPeerSigs,
|
||||
// Shutdown,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
|
||||
Reference in New Issue
Block a user