We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf74365 commit 6eebd00Copy full SHA for 6eebd00
src/event.rs
@@ -810,16 +810,18 @@ where
810
},
811
}
812
813
- self.event_queue
814
- .add_event(Event::PaymentReceived {
815
- payment_id: Some(payment_id),
816
- payment_hash,
817
- amount_msat,
818
- })
819
- .unwrap_or_else(|e| {
+ let event = Event::PaymentReceived {
+ payment_id: Some(payment_id),
+ payment_hash,
+ amount_msat,
+ };
+ match self.event_queue.add_event(event) {
+ Ok(_) => return Ok(()),
820
+ Err(e) => {
821
log_error!(self.logger, "Failed to push to event queue: {}", e);
- panic!("Failed to push to event queue");
822
- });
+ return Err(ReplayEvent());
823
+ },
824
825
826
LdkEvent::PaymentSent {
827
payment_id,
0 commit comments