Closed MaxFangX closed 2 years ago
This makes it possible to run ldk-sample in a tokio task, e.g.
#[tokio::main] pub async fn main() { tokio::spawn(async move { start_ldk().await; }) .await .expect("LDK panicked") }
Thanks to @johncantrell97 for suggesting to cast to &dyn Listen + Send + Sync.
&dyn Listen + Send + Sync
Oops, rustfmt is sad.
Pushed a fix, CI should pass now. Still need approval from you to run it though @TheBlueMatt
This makes it possible to run ldk-sample in a tokio task, e.g.
Thanks to @johncantrell97 for suggesting to cast to
&dyn Listen + Send + Sync
.