Skip to content

Commit a9bc181

Browse files
committed
Drop unnecessary forward_htlcs_without_forward_event
.. as `forward_htlcs` now does the same thing
1 parent e885d77 commit a9bc181

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 {
@@ -9917,13 +9917,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
99179917

99189918
#[inline]
99199919
fn forward_htlcs(&self, per_source_pending_forwards: &mut [PerSourcePendingForward]) {
9920-
self.forward_htlcs_without_forward_event(per_source_pending_forwards);
9921-
}
9922-
9923-
#[inline]
9924-
fn forward_htlcs_without_forward_event(
9925-
&self, per_source_pending_forwards: &mut [PerSourcePendingForward],
9926-
) {
99279920
for &mut (
99289921
prev_short_channel_id,
99299922
prev_counterparty_node_id,

0 commit comments

Comments
 (0)