Skip to content

Support rate limiting in mock database. - #564

Open
mbrandonw wants to merge 2 commits into
mainfrom
rate-limit-fix
Open

mbrandonw wants to merge 2 commits into
mainfrom
rate-limit-fix

Conversation

@mbrandonw

Copy link
Copy Markdown
Member

We currently have some problems in the sync engine due to rate limiting from CloudKit, and before addressing that directly I wanted to get the mock database to support rate limiting. Databases can now be configured with a rateLimit and rateLimitDuration so that if the limit is ever reached while interacting with it, a requestRateLimited error will be thrown.

I will soon stack a PR on top of this to actually fix the problem.

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.

1 participant