Skip to content

Commit 06f9dd7

Browse files
committed
export send_onion_message_using_path for testing
1 parent 5592378 commit 06f9dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/onion_message/messenger.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -807,8 +807,8 @@ where
807807
}
808808
}
809809

810-
#[cfg(test)]
811-
pub(super) fn send_onion_message_using_path<T: OnionMessageContents>(
810+
#[cfg(any(test, feature = "_test_utils"))]
811+
pub fn send_onion_message_using_path<T: OnionMessageContents>(
812812
&self, path: OnionMessagePath, contents: T, reply_path: Option<BlindedPath>
813813
) -> Result<SendSuccess, SendError> {
814814
self.enqueue_onion_message(path, contents, reply_path, format_args!(""))

0 commit comments

Comments
 (0)