Skip to content

Commit cfea807

Browse files
committed
f less indents
1 parent 3395a94 commit cfea807

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,21 +3166,21 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
31663166
// Phantom payments are only PendingHTLCRouting::Receive.
31673167
phantom_shared_secret: None,
31683168
});
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;
31843184
}
31853185
},
31863186
HTLCForwardInfo::AddHTLC { .. } => {

0 commit comments

Comments
 (0)