From 85df2e61c5c7a867d5f32edd61e690927183033c Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 24 Dec 2022 04:15:20 +0000 Subject: [PATCH] Don't expose `process_path` as it requires a slice of objects --- lightning/src/routing/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 881d5857..69af28c6 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -195,7 +195,7 @@ impl InFlightHtlcs { pub fn new() -> Self { InFlightHtlcs(HashMap::new()) } /// Takes in a path with payer's node id and adds the path's details to `InFlightHtlcs`. - pub fn process_path(&mut self, path: &[RouteHop], payer_node_id: PublicKey) { + pub(crate) fn process_path(&mut self, path: &[RouteHop], payer_node_id: PublicKey) { if path.is_empty() { return }; // total_inflight_map needs to be direction-sensitive when keeping track of the HTLC value // that is held up. However, the `hops` array, which is a path returned by `find_route` in -- 2.30.2