Skip to content

Commit cd59bc8

Browse files
-f Fix line wrapping at 100 chars
1 parent cb9ae00 commit cd59bc8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3620,7 +3620,10 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
36203620
// Fail a list of HTLCs that were just freed from the holding cell. The HTLCs need to be
36213621
// failed backwards or, if they were one of our outgoing HTLCs, then their failure needs to
36223622
// be surfaced to the user.
3623-
fn fail_holding_cell_htlcs(&self, mut htlcs_to_fail: Vec<(HTLCSource, PaymentHash)>, channel_id: [u8; 32], _counterparty_node_id: &PublicKey) {
3623+
fn fail_holding_cell_htlcs(
3624+
&self, mut htlcs_to_fail: Vec<(HTLCSource, PaymentHash)>, channel_id: [u8; 32],
3625+
_counterparty_node_id: &PublicKey
3626+
) {
36243627
for (htlc_src, payment_hash) in htlcs_to_fail.drain(..) {
36253628
match htlc_src {
36263629
HTLCSource::PreviousHopData(HTLCPreviousHopData { .. }) => {
@@ -5066,7 +5069,11 @@ impl<Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelMana
50665069
match chan.maybe_free_holding_cell_htlcs(&self.logger) {
50675070
Ok((commitment_opt, holding_cell_failed_htlcs)) => {
50685071
if !holding_cell_failed_htlcs.is_empty() {
5069-
failed_htlcs.push((holding_cell_failed_htlcs, *channel_id, chan.get_counterparty_node_id()));
5072+
failed_htlcs.push((
5073+
holding_cell_failed_htlcs,
5074+
*channel_id,
5075+
chan.get_counterparty_node_id()
5076+
));
50705077
}
50715078
if let Some((commitment_update, monitor_update)) = commitment_opt {
50725079
if let Err(e) = self.chain_monitor.update_channel(chan.get_funding_txo().unwrap(), monitor_update) {

0 commit comments

Comments
 (0)