Skip to content

Commit 9fd9533

Browse files
Fix typo in ScorerAccountingForInFlightHtlcs
1 parent 63c65d4 commit 9fd9533

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-invoice/src/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,11 +649,11 @@ impl<'a, S:Score> lightning::util::ser::Writeable for ScorerAccountingForInFligh
649649

650650
impl<'a, S: Score> Score for ScorerAccountingForInFlightHtlcs<'a, S> {
651651
fn channel_penalty_msat(&self, short_channel_id: u64, source: &NodeId, target: &NodeId, usage: ChannelUsage) -> u64 {
652-
if let Some(used_liqudity) = self.inflight_htlcs.used_liquidity_msat(
652+
if let Some(used_liquidity) = self.inflight_htlcs.used_liquidity_msat(
653653
source, target, short_channel_id
654654
) {
655655
let usage = ChannelUsage {
656-
inflight_htlc_msat: usage.inflight_htlc_msat + used_liqudity,
656+
inflight_htlc_msat: usage.inflight_htlc_msat + used_liquidity,
657657
..usage
658658
};
659659

0 commit comments

Comments
 (0)