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 lastRequestTime being always the original request time #284

Conversation

obscurecat64
Copy link
Contributor

Fixes #283

This fix ensures that lastRequestTime accurately reflects the timing of each retry.

Issue

The lastRequestTime value was always set to the original request time.

Root Cause

This bug was introduced during the TypeScript migration (v3.9.1 -> v4.0).

Changes

  • Fixed the bug causing lastRequestTime to remain static.
  • Added a new test case to cover this scenario and prevent future regressions.

Verification

Verified that the lastRequestTime value now correctly updates with each retry attempt, after the fix. All test cases remain passing.

@mindhells
Copy link
Member

thanks a lot @obscurecat64

@mindhells mindhells merged commit e812ab2 into softonic:master Jul 22, 2024
3 checks passed
@obscurecat64 obscurecat64 deleted the fix/last-request-time-not-working-correctly branch July 22, 2024 11:13
@gitSambhal
Copy link

thank you @obscurecat64

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.

lastRequestTime is incorrect in 4.x but correct in 3.x
3 participants