Commit 42648ad
committed
Refactor InvoicePayer to allow use of async event handler
Previously, an InvoicePayer's event_handler was only used in one place,
handle_event. We now keep the event interception intact, but create two
different wrapper structs that allow the InvoicePayer to implement both
sync and async event handlers.1 parent 5d812ea commit 42648ad
File tree
2 files changed
+135
-67
lines changed- lightning-background-processor/src
- lightning-invoice/src
2 files changed
+135
-67
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
| |||
0 commit comments