File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -588,7 +588,7 @@ impl OutboundPayments {
588
588
if !pmt. is_auto_retryable_now ( ) && pmt. remaining_parts ( ) == 0 {
589
589
pmt. mark_abandoned ( PaymentFailureReason :: RetriesExhausted ) ;
590
590
if let PendingOutboundPayment :: Abandoned { payment_hash, reason, .. } = pmt {
591
- pending_events. lock ( ) . unwrap ( ) . push ( ( events:: Event :: PaymentFailed {
591
+ pending_events. lock ( ) . unwrap ( ) . push_back ( ( events:: Event :: PaymentFailed {
592
592
payment_id : * pmt_id,
593
593
payment_hash : * payment_hash,
594
594
reason : * reason,
@@ -707,7 +707,7 @@ impl OutboundPayments {
707
707
$payment. get_mut( ) . mark_abandoned( $reason) ;
708
708
if let PendingOutboundPayment :: Abandoned { reason, .. } = $payment. get( ) {
709
709
if $payment. get( ) . remaining_parts( ) == 0 {
710
- pending_events. lock( ) . unwrap( ) . push ( ( events:: Event :: PaymentFailed {
710
+ pending_events. lock( ) . unwrap( ) . push_back ( ( events:: Event :: PaymentFailed {
711
711
payment_id,
712
712
payment_hash,
713
713
reason: * reason,
You can’t perform that action at this time.
0 commit comments