]> git.bitcoin.ninja Git - rust-lightning/commit
Handle fallible events in `OnionMessenger`
authorElias Rohrer <dev@tnull.de>
Tue, 2 Jul 2024 10:04:33 +0000 (12:04 +0200)
committerElias Rohrer <dev@tnull.de>
Thu, 18 Jul 2024 13:54:21 +0000 (15:54 +0200)
commitf5cea0e57a72f3218eda355f7f67326756e85820
treea118282e93bf46d43a9a927dc8267e8a48dad14c
parent018908fe9e23f3994ea1a015cdb955708ac5fdc1
Handle fallible events in `OnionMessenger`

Previously, we would just fire-and-forget in `OnionMessenger`'s event
handling. Since we now introduced the possibility of event handling
failures, we here adapt the event handling logic to retain any
events which we failed to handle to have them replayed upon the next
invocation of `process_pending_events`/`process_pending_events_async`.
lightning/src/onion_message/messenger.rs