Skip to content

Commit 5cb750c

Browse files
committed
Drop unnecessary forward_htlcs_without_forward_event
.. as `forward_htlcs` now does the same thing
1 parent 0e3cb72 commit 5cb750c

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
@@ -6324,7 +6324,7 @@ where
63246324
incoming_user_channel_id,
63256325
htlc_forwards.drain(..).collect(),
63266326
);
6327-
self.forward_htlcs_without_forward_event(&mut [pending_forwards]);
6327+
self.forward_htlcs(&mut [pending_forwards]);
63286328
for (htlc_fail, failure_type, failure_reason) in htlc_fails.drain(..) {
63296329
let failure = match htlc_fail {
63306330
HTLCFailureMsg::Relay(fail_htlc) => HTLCForwardInfo::FailHTLC {
@@ -10042,13 +10042,6 @@ This indicates a bug inside LDK. Please report this error at https://github.com/
1004210042

1004310043
#[inline]
1004410044
fn forward_htlcs(&self, per_source_pending_forwards: &mut [PerSourcePendingForward]) {
10045-
self.forward_htlcs_without_forward_event(per_source_pending_forwards);
10046-
}
10047-
10048-
#[inline]
10049-
fn forward_htlcs_without_forward_event(
10050-
&self, per_source_pending_forwards: &mut [PerSourcePendingForward],
10051-
) {
1005210045
for &mut (
1005310046
prev_short_channel_id,
1005410047
prev_counterparty_node_id,

0 commit comments

Comments
 (0)