Skip to content

Commit b51db04

Browse files
committed
Remove pub visibility of InFlightHtlcs HashMap
1 parent 342b78b commit b51db04

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lightning/src/routing/router.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ pub trait Router {
3838
) -> Result<Route, LightningError>;
3939
}
4040

41-
/// A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC
42-
/// is traveling in. The direction boolean is determined by checking if the HTLC source's public
43-
/// key is less than its destination. See [`InFlightHtlcs::used_liquidity_msat`] for more
44-
/// details.
45-
#[cfg(not(any(test, feature = "_test_utils")))]
46-
pub struct InFlightHtlcs(HashMap<(u64, bool), u64>);
47-
#[cfg(any(test, feature = "_test_utils"))]
48-
pub struct InFlightHtlcs(pub HashMap<(u64, bool), u64>);
41+
/// A data structure used to track HTLCs that are currently inflight for pathfinding.
42+
pub struct InFlightHtlcs(
43+
// A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC
44+
// is traveling in. The direction boolean is determined by checking if the HTLC source's public
45+
// key is less than its destination. See `InFlightHtlcs::used_liquidity_msat` for more
46+
// details.
47+
HashMap<(u64, bool), u64>
48+
);
4949

5050
impl InFlightHtlcs {
5151
/// Constructs an empty `InFlightHtlcs`.

0 commit comments

Comments
 (0)