]> git.bitcoin.ninja Git - ldk-sample/commit
Make `ldk-sample` `Send` + `Sync`
authorMax Fang <protonmail.com@maxfa.ng>
Wed, 5 Oct 2022 02:53:09 +0000 (19:53 -0700)
committerMax Fang <protonmail.com@maxfa.ng>
Wed, 5 Oct 2022 08:58:53 +0000 (01:58 -0700)
commit8984205acf1d328837d0f33798e89e479aea1882
tree5b5e7968cc4910b71572ab37d91f2e8155348b5c
parent5cc67b2bbeb4b7e308226d82b608a51a0564fc50
Make `ldk-sample` `Send` + `Sync`

This makes it possible to run ldk-sample in a tokio task, e.g.

```rust
pub async fn main() {
    tokio::spawn(async move {
        start_ldk().await;
    })
        .await
        .expect("LDK panicked")
}
```
src/cli.rs
src/main.rs