From 06f9dd7e83ae8ba5b5ecac3cffa404e16d06d4e4 Mon Sep 17 00:00:00 2001 From: Orbital Date: Thu, 1 Feb 2024 20:22:53 -0600 Subject: [PATCH] export send_onion_message_using_path for testing --- lightning/src/onion_message/messenger.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!("")) -- 2.39.5