Skip to content

Commit 7c94636

Browse files
authored
Merge pull request #2868 from orbitalturtle/export-send-onion-path
export send_onion_message_using_path for testing
2 parents 4d993c0 + 06f9dd7 commit 7c94636

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
@@ -811,8 +811,8 @@ where
811811
}
812812
}
813813

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

0 commit comments

Comments
 (0)