Skip to content

Commit cc35650

Browse files
committed
Hide Direction::select_node_id due to lifetimes
1 parent c34d166 commit cc35650

File tree

1 file changed

+2
-2
lines changed
  • lightning/src/blinded_path

1 file changed

+2
-2
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,15 @@ impl_writeable!(BlindedHop, {
185185

186186
impl Direction {
187187
/// Returns the [`NodeId`] from the inputs corresponding to the direction.
188-
pub fn select_node_id(&self, node_a: NodeId, node_b: NodeId) -> NodeId {
188+
pub(crate) fn select_node_id(&self, node_a: NodeId, node_b: NodeId) -> NodeId {
189189
match self {
190190
Direction::NodeOne => core::cmp::min(node_a, node_b),
191191
Direction::NodeTwo => core::cmp::max(node_a, node_b),
192192
}
193193
}
194194

195195
/// Returns the [`PublicKey`] from the inputs corresponding to the direction.
196-
pub fn select_pubkey<'a>(&self, node_a: &'a PublicKey, node_b: &'a PublicKey) -> &'a PublicKey {
196+
pub(crate) fn select_pubkey<'a>(&self, node_a: &'a PublicKey, node_b: &'a PublicKey) -> &'a PublicKey {
197197
let (node_one, node_two) = if NodeId::from_pubkey(node_a) < NodeId::from_pubkey(node_b) {
198198
(node_a, node_b)
199199
} else {

0 commit comments

Comments
 (0)