Skip to content

Commit

Permalink
f sp
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Jul 9, 2022
1 parent 33cebe0 commit e74888d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/routing/scoring.rs
Expand Up @@ -1181,7 +1181,7 @@ impl<T: Time> Readable for ChannelLiquidity<T> {
// Because we write `last_updated` as wallclock time when we were written and create an
// `Instant` which represents that wallclock time, we may hit that panic if wallclock time
// is before when we were written. Thus, we check if we'd end up with a time in the future
// and just use `now` instead to avoid panicing later.
// and just use `now` instead to avoid panicking later.
let wall_clock_now = T::duration_since_epoch();
let now = T::now();
let last_updated = if wall_clock_now > duration_since_epoch {
Expand Down

0 comments on commit e74888d

Please sign in to comment.