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

Keyv isn't fast enough for concurrent requests #4

Open
AlmostEfficient opened this issue Oct 26, 2021 · 0 comments
Open

Keyv isn't fast enough for concurrent requests #4

AlmostEfficient opened this issue Oct 26, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@AlmostEfficient
Copy link
Owner

AlmostEfficient commented Oct 26, 2021

Area
Making concurrent requests with /faucet and setting 'lastTx' in Keyv (index.js)

Expected behaviour
Every request after the first is told to wait for 15s to make a new request.

Actual behaviour
A few requests right after the first aren't stopped by the lastTx time check. This is because Keyv hasn't set lastTx yet.

Need to either use Redis or just do this in memory. Will explore options.

@AlmostEfficient AlmostEfficient added the bug Something isn't working label Oct 26, 2021
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