Skip to content

Commit b16b362

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 ba591b5 commit b16b362

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
@@ -984,8 +984,7 @@ where
984984

985985
/// Process failure we got back from upstream on a payment we sent (implying htlc_source is an
986986
/// OutboundRoute).
987-
#[inline]
988-
pub(super) fn process_onion_failure_inner<T: secp256k1::Signing, L: Deref>(
987+
fn process_onion_failure_inner<T: secp256k1::Signing, L: Deref>(
989988
secp_ctx: &Secp256k1<T>, logger: &L, path: &Path, outer_session_priv: &SecretKey,
990989
inner_session_priv: Option<&SecretKey>, mut encrypted_packet: OnionErrorPacket,
991990
) -> DecodedOnionFailure

0 commit comments

Comments
 (0)