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

Block expire time is wrong. #2208

Open
2 of 4 tasks
zhang-quan-yi opened this issue Dec 30, 2024 · 0 comments
Open
2 of 4 tasks

Block expire time is wrong. #2208

zhang-quan-yi opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@zhang-quan-yi
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I set the ttl to 10s, and the limit to 10 times.
When I request the API 10 times in 0s, 1s, 2s... 9s. the next request can only be called at (9 + 10)s.
I think the next request can be called at (9 + 1)s, after the first call expired.

Minimum reproduction code

no need.

Steps to reproduce

No response

Expected behavior

I think the next request can be called at (9 + 1)s, after the first call expired.

Package version

6.3.0

NestJS version

10.0.0

Node.js version

v22.11.0

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@zhang-quan-yi zhang-quan-yi added the bug Something isn't working label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant