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

Change Rate::reset to u64 #615

Merged
merged 1 commit into from
Mar 24, 2024
Merged

Change Rate::reset to u64 #615

merged 1 commit into from
Mar 24, 2024

Conversation

smoelius
Copy link
Contributor

Fixes #614

@XAMPPRocky XAMPPRocky merged commit 6004d50 into XAMPPRocky:main Mar 24, 2024
11 checks passed
@XAMPPRocky
Copy link
Owner

Thank you for your PR!

@XAMPPRocky
Copy link
Owner

Though looking at this, probably all the fields should not be usize.

@github-actions github-actions bot mentioned this pull request Mar 24, 2024
@smoelius smoelius deleted the reset-u64 branch March 24, 2024 11:12
@smoelius
Copy link
Contributor Author

Though looking at this, probably all the fields should not be usize.

I'm not sure, TBH. But since the the other fields are counts of "actions," usize seems reasonable.

@XAMPPRocky
Copy link
Owner

Generally if it doesn't actually match to the size of a machine pointer, it shouldn't use the size types, it should be u32 or u64.

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.

Should RateLimit::reset be a u64?
2 participants