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

feat: temporarily pause requests if store has stock #147

Merged
merged 4 commits into from Sep 21, 2020

Conversation

nacgarg
Copy link
Contributor

@nacgarg nacgarg commented Sep 21, 2020

Description

Adds a new config option IN_STOCK_WAIT_TIME that controls the amount of time to wait between consecutive requests to the same store if the store has a card in stock. This is to reduce requests to the store during a time when the user is presumably scrambling to check out. Setting it to 0 (the default value) bypasses this feature entirely.

Testing

Tested with the in-stock debug cards.

@nacgarg nacgarg requested a review from jef as a code owner September 21, 2020 01:28
Copy link
Owner

@jef jef left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome contribution. I feel like people will like this one!

Thank you!!

@jef jef merged commit 6413144 into jef:main Sep 21, 2020
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.

None yet

2 participants