Skip to content

Commit

Permalink
Merge pull request #2868 from orbitalturtle/export-send-onion-path
Browse files Browse the repository at this point in the history
export send_onion_message_using_path for testing
  • Loading branch information
jkczyz authored Feb 2, 2024
2 parents 4d993c0 + 06f9dd7 commit 7c94636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lightning/src/onion_message/messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,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!(""))
Expand Down

0 comments on commit 7c94636

Please sign in to comment.