Skip to content

Commit 78c0eaa

Browse files
Merge pull request #3104 from TheBlueMatt/2024-06-routing-counters
2 parents 6035c83 + 4f5e17b commit 78c0eaa

File tree

4 files changed

+470
-166
lines changed

4 files changed

+470
-166
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ impl_writeable!(BlindedHop, {
308308

309309
impl Direction {
310310
/// Returns the [`NodeId`] from the inputs corresponding to the direction.
311-
pub fn select_node_id<'a>(&self, node_a: &'a NodeId, node_b: &'a NodeId) -> &'a NodeId {
311+
pub fn select_node_id(&self, node_a: NodeId, node_b: NodeId) -> NodeId {
312312
match self {
313313
Direction::NodeOne => core::cmp::min(node_a, node_b),
314314
Direction::NodeTwo => core::cmp::max(node_a, node_b),

0 commit comments

Comments
 (0)