Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use saturating_sub for device lock comparison #843

Merged
merged 1 commit into from
Nov 10, 2023
Merged

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman commented Nov 10, 2023

If somehow our clock was before what was in the device lock, we would underflow. Probably won't catch a bug but this is more correct / safe

@TonyGiorgio TonyGiorgio merged commit 2b2c2a3 into master Nov 10, 2023
9 checks passed
@TonyGiorgio TonyGiorgio deleted the sat-sub branch November 10, 2023 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants