Skip to content

Commit 8b0d0c6

Browse files
f nit
1 parent 1c5cd59 commit 8b0d0c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/routing/router.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,10 +951,10 @@ impl<'a> CandidateRouteHop<'a> {
951951
liquidity_msat: details.next_outbound_htlc_limit_msat,
952952
},
953953
CandidateRouteHop::PublicHop { info, .. } => info.effective_capacity(),
954-
CandidateRouteHop::PrivateHop { hint } => {
955-
hint.htlc_maximum_msat.map_or(EffectiveCapacity::Infinite,
956-
|max| EffectiveCapacity::HintMaxHTLC { amount_msat: max })
957-
},
954+
CandidateRouteHop::PrivateHop { hint: RouteHintHop { htlc_maximum_msat: Some(max), .. }} =>
955+
EffectiveCapacity::HintMaxHTLC { amount_msat: *max },
956+
CandidateRouteHop::PrivateHop { hint: RouteHintHop { htlc_maximum_msat: None, .. }} =>
957+
EffectiveCapacity::Infinite,
958958
}
959959
}
960960
}

0 commit comments

Comments
 (0)