mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +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
@@ -11,8 +11,8 @@ use std::str::FromStr;
|
||||
use std::{io, str};
|
||||
use tokio_util::codec::{Decoder, Encoder};
|
||||
|
||||
use crate::messages::{Notification, Request};
|
||||
use crate::messages::JsonRpc;
|
||||
use crate::messages::{Notification, Request};
|
||||
|
||||
/// A simple codec that parses messages separated by two successive
|
||||
/// `\n` newlines.
|
||||
|
||||
Reference in New Issue
Block a user