Skip to content

Commit 3c75a6d

Browse files
Fix typo in ScorerAccountingForInFlightHtlcs
1 parent 76d77ce commit 3c75a6d

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
@@ -651,11 +651,11 @@ impl<'a, S:Score> lightning::util::ser::Writeable for ScorerAccountingForInFligh
651651

652652
impl<'a, S: Score> Score for ScorerAccountingForInFlightHtlcs<'a, S> {
653653
fn channel_penalty_msat(&self, short_channel_id: u64, source: &NodeId, target: &NodeId, usage: ChannelUsage) -> u64 {
654-
if let Some(used_liqudity) = self.inflight_htlcs.used_liquidity_msat(
654+
if let Some(used_liquidity) = self.inflight_htlcs.used_liquidity_msat(
655655
source, target, short_channel_id
656656
) {
657657
let usage = ChannelUsage {
658-
inflight_htlc_msat: usage.inflight_htlc_msat + used_liqudity,
658+
inflight_htlc_msat: usage.inflight_htlc_msat + used_liquidity,
659659
..usage
660660
};
661661

0 commit comments

Comments
 (0)