Skip to content

Commit dc39799

Browse files
authored
Merge pull request #1936 from TheBlueMatt/2023-01-in-flight-clone
`#[derive(Clone)]` for `InFlightHtlcs`
2 parents f0c181e + 9414830 commit dc39799

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/routing/router.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ impl<'a, S: Score> Score for ScorerAccountingForInFlightHtlcs<'a, S> {
181181

182182
/// A data structure for tracking in-flight HTLCs. May be used during pathfinding to account for
183183
/// in-use channel liquidity.
184+
#[derive(Clone)]
184185
pub struct InFlightHtlcs(
185186
// A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC
186187
// is traveling in. The direction boolean is determined by checking if the HTLC source's public

0 commit comments

Comments
 (0)