Skip to content

Commit 408fb81

Browse files
committed
Drop unnecessary forward_htlcs_without_forward_event
.. as `forward_htlcs` now does the same thing
1 parent 2f0e0e9 commit 408fb81

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6283,7 +6283,7 @@ where
62836283
incoming_user_channel_id,
62846284
htlc_forwards.drain(..).collect(),
62856285
);
6286-
self.forward_htlcs_without_forward_event(&mut [pending_forwards]);
6286+
self.forward_htlcs(&mut [pending_forwards]);
62876287
for (htlc_fail, failure_type, failure_reason) in htlc_fails.drain(..) {
62886288
let failure = match htlc_fail {
62896289
HTLCFailureMsg::Relay(fail_htlc) => HTLCForwardInfo::FailHTLC {
@@ -9923,13 +9923,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
99239923

99249924
#[inline]
99259925
fn forward_htlcs(&self, per_source_pending_forwards: &mut [PerSourcePendingForward]) {
9926-
self.forward_htlcs_without_forward_event(per_source_pending_forwards);
9927-
}
9928-
9929-
#[inline]
9930-
fn forward_htlcs_without_forward_event(
9931-
&self, per_source_pending_forwards: &mut [PerSourcePendingForward],
9932-
) {
99339926
for &mut (
99349927
prev_short_channel_id,
99359928
prev_counterparty_node_id,

0 commit comments

Comments
 (0)