]> git.bitcoin.ninja Git - rust-lightning/commitdiff
export send_onion_message_using_path for testing
authorOrbital <orbitalturtle@protonmail.com>
Fri, 2 Feb 2024 02:22:53 +0000 (20:22 -0600)
committerOrbital <orbitalturtle@protonmail.com>
Fri, 2 Feb 2024 02:22:53 +0000 (20:22 -0600)
lightning/src/onion_message/messenger.rs

index 5dc3bb422e67efffc880465ad5ab3769ce48fc7a..14991a59cf4a6a9bf27dbc6d3c245e661946cdfb 100644 (file)
@@ -807,8 +807,8 @@ where
                }
        }
 
-       #[cfg(test)]
-       pub(super) fn send_onion_message_using_path<T: OnionMessageContents>(
+       #[cfg(any(test, feature = "_test_utils"))]
+       pub fn send_onion_message_using_path<T: OnionMessageContents>(
                &self, path: OnionMessagePath, contents: T, reply_path: Option<BlindedPath>
        ) -> Result<SendSuccess, SendError> {
                self.enqueue_onion_message(path, contents, reply_path, format_args!(""))