Skip to content

Switch to async background processing and cleanup runtime handling.#68

Merged
tnull merged 2 commits intolightningdevkit:mainfrom
tnull:2023-03-async-background-processing
Apr 26, 2023
Merged

Switch to async background processing and cleanup runtime handling.#68
tnull merged 2 commits intolightningdevkit:mainfrom
tnull:2023-03-async-background-processing

Conversation

@tnull
Copy link
Copy Markdown
Collaborator

@tnull tnull commented Apr 21, 2023

Fixes #37~~, currently based on lightningdevkit/rust-lightning#2199.~~
We switch to an async BP as upstream now allows us to.

We furthermore cleanup our runtime handling:
So far we instantiated a dedicated Runtime object which also held the BP. This was clunky and somewhat error-prone under different circumstances. As we now got rid of the BP object, we here remove the dedicated Runtime object and just pass around an Arc<RwLock<Option<Runtime>>> upon init, which allows us to get rid of the set/drop methods on Wallet as an added benefit.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use async event handler and background processor

2 participants