Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid panicking on wallclock time going backwards across restart
Because we serialize `Instant`s using wallclock time in `ProbabilisticScorer`, if time goes backwards across restarts we may end up with `Instant`s in the future, which causes rustc prior to 1.60 to panic when calculating durations. Here we simply avoid this by setting the time to `now` if we get a time in the future.
- Loading branch information