File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -38,14 +38,14 @@ pub trait Router {
38
38
) -> Result < Route , LightningError > ;
39
39
}
40
40
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
+ ) ;
49
49
50
50
impl InFlightHtlcs {
51
51
/// Constructs an empty `InFlightHtlcs`.
You can’t perform that action at this time.
0 commit comments