`#[derive(Clone)]` for `InFlightHtlcs`
[rust-lightning] / lightning / src / routing / router.rs
index 33acb670ebe207a6c0335d07d91b02ff88e1cb54..881d5857e2462f21d64c2e78866f5fb6dcef03b7 100644 (file)
@@ -181,6 +181,7 @@ impl<S: Score> Score for ScorerAccountingForInFlightHtlcs<S> {
 
 /// A data structure for tracking in-flight HTLCs. May be used during pathfinding to account for
 /// in-use channel liquidity.
+#[derive(Clone)]
 pub struct InFlightHtlcs(
        // A map with liquidity value (in msat) keyed by a short channel id and the direction the HTLC
        // is traveling in. The direction boolean is determined by checking if the HTLC source's public