Skip to content

Commit 92eefae

Browse files
committed
Hide Direction::select_node_id due to lifetimes
1 parent c065a80 commit 92eefae

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
@@ -183,15 +183,15 @@ impl_writeable!(BlindedHop, {
183183

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

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

0 commit comments

Comments
 (0)