Skip to content

Commit 5f883bf

Browse files
committed
Drop unnecessary forward_htlcs_without_forward_event
.. as `forward_htlcs` now does the same thing
1 parent 9f57703 commit 5f883bf

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
@@ -6284,7 +6284,7 @@ where
62846284
incoming_user_channel_id,
62856285
htlc_forwards.drain(..).collect(),
62866286
);
6287-
self.forward_htlcs_without_forward_event(&mut [pending_forwards]);
6287+
self.forward_htlcs(&mut [pending_forwards]);
62886288
for (htlc_fail, failure_type, failure_reason) in htlc_fails.drain(..) {
62896289
let failure = match htlc_fail {
62906290
HTLCFailureMsg::Relay(fail_htlc) => HTLCForwardInfo::FailHTLC {
@@ -10054,13 +10054,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1005410054

1005510055
#[inline]
1005610056
fn forward_htlcs(&self, per_source_pending_forwards: &mut [PerSourcePendingForward]) {
10057-
self.forward_htlcs_without_forward_event(per_source_pending_forwards);
10058-
}
10059-
10060-
#[inline]
10061-
fn forward_htlcs_without_forward_event(
10062-
&self, per_source_pending_forwards: &mut [PerSourcePendingForward],
10063-
) {
1006410057
for &mut (
1006510058
prev_short_channel_id,
1006610059
prev_counterparty_node_id,

0 commit comments

Comments
 (0)