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

Fix timer #26

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Fix timer #26

merged 1 commit into from
Feb 21, 2024

Conversation

dr-orlovsky
Copy link
Member

No description provided.

@dr-orlovsky dr-orlovsky added bug Something isn't working enhancement New feature or request labels Feb 12, 2024
src/timeouts.rs Outdated
let time = time.into();
let last = *self.timeouts.first()?;
Some(if last >= time {
Duration::from_secs(last.as_secs() - time.as_secs())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're losing millisecond resolution by converting to seconds here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@dr-orlovsky dr-orlovsky merged commit abfd369 into master Feb 21, 2024
18 checks passed
@dr-orlovsky
Copy link
Member Author

Released as v0.5.0 CC @cloudhead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants