FaucetBot icon indicating copy to clipboard operation
FaucetBot copied to clipboard

Keyv isn't fast enough for concurrent requests

Open AlmostEfficient opened this issue 4 years ago • 0 comments

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 avatar Oct 26 '21 20:10 AlmostEfficient