Refactor rate limit time calculation and organize imports#319
Merged
rainxchzed merged 1 commit intomainfrom Mar 11, 2026
Merged
Refactor rate limit time calculation and organize imports#319rainxchzed merged 1 commit intomainfrom
rainxchzed merged 1 commit intomainfrom
Conversation
- Update `RateLimitInfo.timeUntilReset()` to use `Instant` and `Clock.System.now()` for more accurate duration calculation. - Fix an issue where `resetTimestamp` was treated as milliseconds instead of seconds. - Organize and clean up imports in `TimeFormatters.kt`.
Contributor
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (2)
WalkthroughUpdates time calculation in RateLimitInfo to use Instant-based approach instead of epoch-milliseconds, and reorders imports in TimeFormatters. No changes to public APIs or method signatures. Changes
Estimated code review effortπ― 1 (Trivial) | β±οΈ ~5 minutes Poem
π₯ Pre-merge checks | β 2 | β 1β Failed checks (1 warning)
β Passed checks (2 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touches
π§ͺ Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RateLimitInfo.timeUntilReset()to useInstantandClock.System.now()for more accurate duration calculation.resetTimestampwas treated as milliseconds instead of seconds.TimeFormatters.kt.Summary by CodeRabbit