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 e1b01d8 commit 853c6e0Copy full SHA for 853c6e0
src/event.rs
@@ -898,16 +898,17 @@ where
898
return Err(ReplayEvent());
899
},
900
};
901
- self.event_queue
902
- .add_event(Event::PaymentFailed {
903
- payment_id: Some(payment_id),
904
- payment_hash,
905
- reason,
906
- })
907
- .unwrap_or_else(|e| {
+ return match self.event_queue.add_event(Event::PaymentFailed {
+ payment_id: Some(payment_id),
+ payment_hash,
+ reason,
+ }) {
+ Ok(_) => Ok(()),
+ Err(e) => {
908
log_error!(self.logger, "Failed to push to event queue: {}", e);
909
- panic!("Failed to push to event queue");
910
- });
+ Err(ReplayEvent())
+ },
911
+ };
912
913
914
LdkEvent::PaymentPathSuccessful { .. } => {},
0 commit comments