Skip to content

Commit 725d754

Browse files
committed
Make process_onion_failure_inner module-private
There's no reason for anything outside of `onion_utils` to call an `_inner` method, so it shouldn't be pub.
1 parent 87c5cae commit 725d754

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,7 @@ where
976976

977977
/// Process failure we got back from upstream on a payment we sent (implying htlc_source is an
978978
/// OutboundRoute).
979-
#[inline]
980-
pub(super) fn process_onion_failure_inner<T: secp256k1::Signing, L: Deref>(
979+
fn process_onion_failure_inner<T: secp256k1::Signing, L: Deref>(
981980
secp_ctx: &Secp256k1<T>, logger: &L, htlc_source: &HTLCSource, outer_session_priv: &SecretKey,
982981
inner_session_priv: Option<&SecretKey>, mut encrypted_packet: OnionErrorPacket,
983982
) -> DecodedOnionFailure

0 commit comments

Comments
 (0)