Skip to content

Commit febe24c

Browse files
committed
Switch to using the OnionMessenger directly in BP
When `OnionMessenger` first developed a timer and events interface, we accessed the `OnionMessenger` indirectly via the `PeerManager`. While this is a fairly awkward interface, it avoided a large pile of generics on the background processor interfaces. However, since we now have an `AOnionMessenger` trait, this concern is no longer significant. Further, because we now want to use the built-in `OnionMessenger` async event processing method, we really need a direct referene to the `OnionMessenger` in the background processor, which we add here optionally.
1 parent 3a3a45c commit febe24c

File tree

1 file changed

+41
-45
lines changed
  • lightning-background-processor/src

1 file changed

+41
-45
lines changed

0 commit comments

Comments
 (0)