Skip to content

Commit 09ed168

Browse files
committed
f - Fix 1.36.0 build
1 parent b468dc0 commit 09ed168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/routing/scorer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl routing::Score for Scorer {
170170

171171
#[cfg(not(feature = "no-std"))]
172172
fn decay_from(penalty_msat: u64, last_failure: &SystemTime, decay_interval: Duration) -> u64 {
173-
let decays = last_failure.elapsed().map_or(0, |elapsed| {
173+
let decays = last_failure.elapsed().ok().map_or(0, |elapsed| {
174174
elapsed.as_secs() / decay_interval.as_secs()
175175
});
176176
penalty_msat >> decays

0 commit comments

Comments
 (0)