Skip to content

Commit ab95042

Browse files
committed
f less indents
1 parent 28df626 commit ab95042

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
@@ -3159,21 +3159,21 @@ impl<M: Deref, T: Deref, K: Deref, F: Deref, L: Deref> ChannelManager<M, T, K, F
31593159
// Phantom payments are only PendingHTLCRouting::Receive.
31603160
phantom_shared_secret: None,
31613161
});
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;
31773177
}
31783178
},
31793179
HTLCForwardInfo::AddHTLC { .. } => {

0 commit comments

Comments
 (0)