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

can you please add skipSuccessfulRequests #60

Open
abdelrahman543873 opened this issue Jun 11, 2024 · 1 comment
Open

can you please add skipSuccessfulRequests #60

abdelrahman543873 opened this issue Jun 11, 2024 · 1 comment

Comments

@abdelrahman543873
Copy link

very simple in the rate limit function can we do

if (this.options.skipSuccessfulRequests) {
            ctx.res.on('finish', () => {
                if (ctx.status < 400) {
                    this.store.decrement(key, this.options, weight);
                }
            });
        }
@abdelrahman543873
Copy link
Author

@yveskaufmann @jeanclaudeyalap please somebody ?

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

No branches or pull requests

1 participant