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