From: Orbital Date: Fri, 2 Feb 2024 02:22:53 +0000 (-0600) Subject: export send_onion_message_using_path for testing X-Git-Tag: v0.0.123-beta~85^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=06f9dd7e83ae8ba5b5ecac3cffa404e16d06d4e4;p=rust-lightning export send_onion_message_using_path for testing --- diff --git a/lightning/src/onion_message/messenger.rs b/lightning/src/onion_message/messenger.rs index 5dc3bb422..14991a59c 100644 --- a/lightning/src/onion_message/messenger.rs +++ b/lightning/src/onion_message/messenger.rs @@ -807,8 +807,8 @@ where } } - #[cfg(test)] - pub(super) fn send_onion_message_using_path( + #[cfg(any(test, feature = "_test_utils"))] + pub fn send_onion_message_using_path( &self, path: OnionMessagePath, contents: T, reply_path: Option ) -> Result { self.enqueue_onion_message(path, contents, reply_path, format_args!(""))