Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(client): avoid panics in uses of
Instant
(#2746)
Even though this is almost definitely a bug in Rust, it seems most prudent to actively avoid the uses of `Instant` that are prone to this bug. This change replaces uses of `Instant::elapsed` and `Instant::sub` with calls to `Instant::saturating_duration_since` to prevent this class of panic.
- Loading branch information