@@ -3159,21 +3159,21 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
3159
3159
// Phantom payments are only PendingHTLCRouting::Receive.
3160
3160
phantom_shared_secret : None ,
3161
3161
} ) ;
3162
- match chan. get_mut ( ) . queue_htlc ( outgoing_amt_msat, payment_hash , outgoing_cltv_value , htlc_source . clone ( ) , onion_packet , & self . logger ) {
3163
- Err ( e ) => {
3164
- if let ChannelError :: Ignore ( msg ) = e {
3165
- log_trace ! ( self . logger , "Failed to forward HTLC with payment_hash {}: {}" , log_bytes! ( payment_hash . 0 ) , msg ) ;
3166
- } else {
3167
- panic ! ( "Stated return value requirements in send_htlc() were not met" ) ;
3168
- }
3169
- let ( failure_code , data ) = self . get_htlc_temp_fail_err_and_data ( 0x1000 | 7 , short_chan_id , chan . get ( ) ) ;
3170
- failed_forwards . push ( ( htlc_source , payment_hash ,
3171
- HTLCFailReason :: Reason { failure_code, data } ,
3172
- HTLCDestination :: NextHopChannel { node_id : Some ( chan . get ( ) . get_counterparty_node_id ( ) ) , channel_id : forward_chan_id }
3173
- ) ) ;
3174
- continue ;
3175
- } ,
3176
- Ok ( ( ) ) => { } ,
3162
+ if let Err ( e ) = chan. get_mut ( ) . queue_htlc ( outgoing_amt_msat,
3163
+ payment_hash , outgoing_cltv_value , htlc_source . clone ( ) ,
3164
+ onion_packet , & self . logger )
3165
+ {
3166
+ if let ChannelError :: Ignore ( msg ) = e {
3167
+ log_trace ! ( self . logger , "Failed to forward HTLC with payment_hash {}: {}" , log_bytes! ( payment_hash . 0 ) , msg ) ;
3168
+ } else {
3169
+ panic ! ( "Stated return value requirements in send_htlc() were not met" ) ;
3170
+ }
3171
+ let ( failure_code, data) = self . get_htlc_temp_fail_err_and_data ( 0x1000 | 7 , short_chan_id , chan . get ( ) ) ;
3172
+ failed_forwards . push ( ( htlc_source , payment_hash ,
3173
+ HTLCFailReason :: Reason { failure_code , data } ,
3174
+ HTLCDestination :: NextHopChannel { node_id : Some ( chan . get ( ) . get_counterparty_node_id ( ) ) , channel_id : forward_chan_id }
3175
+ ) ) ;
3176
+ continue ;
3177
3177
}
3178
3178
} ,
3179
3179
HTLCForwardInfo :: AddHTLC { .. } => {
0 commit comments