-
-
Notifications
You must be signed in to change notification settings - Fork 460
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: ratelimit prediction #2188
base: master
Are you sure you want to change the base?
Commits on Jul 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c104192 - Browse repository at this point
Copy the full SHA c104192View commit details -
Configuration menu - View commit details
-
Copy full SHA for b04175c - Browse repository at this point
Copy the full SHA b04175cView commit details -
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ba09efb - Browse repository at this point
Copy the full SHA ba09efbView commit details
Commits on Jul 31, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6762a73 - Browse repository at this point
Copy the full SHA 6762a73View commit details -
refactor!: move global concurrency to http client and temporary bucke…
…ts to bucketstorage also adds the ability to modify bucket storage for distribution or shared data, using something like Redis.
Configuration menu - View commit details
-
Copy full SHA for 2fb51ca - Browse repository at this point
Copy the full SHA 2fb51caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a1097c - Browse repository at this point
Copy the full SHA 6a1097cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32f5cbd - Browse repository at this point
Copy the full SHA 32f5cbdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f80550a - Browse repository at this point
Copy the full SHA f80550aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 292b4fe - Browse repository at this point
Copy the full SHA 292b4feView commit details -
Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4f64493 - Browse repository at this point
Copy the full SHA 4f64493View commit details -
Configuration menu - View commit details
-
Copy full SHA for 325e670 - Browse repository at this point
Copy the full SHA 325e670View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1496106 - Browse repository at this point
Copy the full SHA 1496106View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac8a68b - Browse repository at this point
Copy the full SHA ac8a68bView commit details -
Forgot to add bucket storage to slots. Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 806939e - Browse repository at this point
Copy the full SHA 806939eView commit details
Commits on Aug 3, 2023
-
Co-authored-by: Emre Terzioglu <[email protected]> Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1296843 - Browse repository at this point
Copy the full SHA 1296843View commit details
Commits on Aug 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2b2f2b2 - Browse repository at this point
Copy the full SHA 2b2f2b2View commit details
Commits on Aug 5, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b995647 - Browse repository at this point
Copy the full SHA b995647View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3283f3a - Browse repository at this point
Copy the full SHA 3283f3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65f4246 - Browse repository at this point
Copy the full SHA 65f4246View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d33ee0 - Browse repository at this point
Copy the full SHA 9d33ee0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 109ba10 - Browse repository at this point
Copy the full SHA 109ba10View commit details -
Merge branch 'ratelimit-prediction' of https://github.com/Pycord-Deve…
…lopment/pycord into ratelimit-prediction
Configuration menu - View commit details
-
Copy full SHA for 8c48cc2 - Browse repository at this point
Copy the full SHA 8c48cc2View commit details -
Co-authored-by: Emre Terzioglu <[email protected]> Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9fe2646 - Browse repository at this point
Copy the full SHA 9fe2646View commit details -
Configuration menu - View commit details
-
Copy full SHA for 37039dc - Browse repository at this point
Copy the full SHA 37039dcView commit details
Commits on Nov 1, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2ea1e80 - Browse repository at this point
Copy the full SHA 2ea1e80View commit details
Commits on Jan 3, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 27b6120 - Browse repository at this point
Copy the full SHA 27b6120View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4787982 - Browse repository at this point
Copy the full SHA 4787982View commit details -
Configuration menu - View commit details
-
Copy full SHA for 38feea0 - Browse repository at this point
Copy the full SHA 38feea0View commit details -
Configuration menu - View commit details
-
Copy full SHA for d61d0ab - Browse repository at this point
Copy the full SHA d61d0abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a2aefe - Browse repository at this point
Copy the full SHA 6a2aefeView commit details -
refactor!(webhooks): revert rate limit prediction implementation
Webhook rate limits are too unpredictable.
Configuration menu - View commit details
-
Copy full SHA for 4b9a3fc - Browse repository at this point
Copy the full SHA 4b9a3fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0de14db - Browse repository at this point
Copy the full SHA 0de14dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for ba3c20f - Browse repository at this point
Copy the full SHA ba3c20fView commit details
Commits on Jan 4, 2024
-
bulk: merge Doru's suggestions
Co-authored-by: Dorukyum <[email protected]> Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c1465f - Browse repository at this point
Copy the full SHA 6c1465fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 06bca8e - Browse repository at this point
Copy the full SHA 06bca8eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 532071d - Browse repository at this point
Copy the full SHA 532071dView commit details
Commits on Jan 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1b57349 - Browse repository at this point
Copy the full SHA 1b57349View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7da74a6 - Browse repository at this point
Copy the full SHA 7da74a6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a47dd73 - Browse repository at this point
Copy the full SHA a47dd73View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6af4c7 - Browse repository at this point
Copy the full SHA d6af4c7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9489a92 - Browse repository at this point
Copy the full SHA 9489a92View commit details
Commits on Jan 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3376bfa - Browse repository at this point
Copy the full SHA 3376bfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for f413d19 - Browse repository at this point
Copy the full SHA f413d19View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1084ab3 - Browse repository at this point
Copy the full SHA 1084ab3View commit details -
Configuration menu - View commit details
-
Copy full SHA for c5ad2d9 - Browse repository at this point
Copy the full SHA c5ad2d9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6331678 - Browse repository at this point
Copy the full SHA 6331678View commit details -
Configuration menu - View commit details
-
Copy full SHA for fe0e6f0 - Browse repository at this point
Copy the full SHA fe0e6f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48a4571 - Browse repository at this point
Copy the full SHA 48a4571View commit details -
docs: make DynamicBucket docs more descriptive
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54c37b7 - Browse repository at this point
Copy the full SHA 54c37b7View commit details -
chore: make bucket_storage parameter optional
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2900770 - Browse repository at this point
Copy the full SHA 2900770View commit details -
Configuration menu - View commit details
-
Copy full SHA for 88cd5f6 - Browse repository at this point
Copy the full SHA 88cd5f6View commit details -
fix: bucket_storage keyword in client
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c505f8c - Browse repository at this point
Copy the full SHA c505f8cView commit details
Commits on Jan 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 264ffea - Browse repository at this point
Copy the full SHA 264ffeaView commit details -
docs(client): per: int -> float
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72f9622 - Browse repository at this point
Copy the full SHA 72f9622View commit details
Commits on Jan 24, 2024
-
chore(changelog): improve log clarity
Co-authored-by: Emre Terzioglu <[email protected]> Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cf80568 - Browse repository at this point
Copy the full SHA cf80568View commit details -
Configuration menu - View commit details
-
Copy full SHA for ac2e27b - Browse repository at this point
Copy the full SHA ac2e27bView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb5d773 - Browse repository at this point
Copy the full SHA fb5d773View commit details -
Summary: if two or more requests get rate limited at the same time with the same bucket, they will override each other. To fix this without using any locks, we just set the temp bucket before any rate limit can happen, and set it to rate limited once there is one, therefore the only thing being overridden in the `rate_limited` variable to True.
Configuration menu - View commit details
-
Copy full SHA for 9bd1953 - Browse repository at this point
Copy the full SHA 9bd1953View commit details -
Merge branch 'master' into ratelimit-prediction
Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3889249 - Browse repository at this point
Copy the full SHA 3889249View commit details -
Configuration menu - View commit details
-
Copy full SHA for 123544e - Browse repository at this point
Copy the full SHA 123544eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1df061b - Browse repository at this point
Copy the full SHA 1df061bView commit details -
Signed-off-by: Dorukyum <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c9307d7 - Browse repository at this point
Copy the full SHA c9307d7View commit details -
rate_limited is now set to False by default. There is a lock on .use to prevent multiple requests from all releasing requests at the same time. Signed-off-by: VincentRPS <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0dd79b5 - Browse repository at this point
Copy the full SHA 0dd79b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for a7914ab - Browse repository at this point
Copy the full SHA a7914abView commit details -
Configuration menu - View commit details
-
Copy full SHA for c6b20af - Browse repository at this point
Copy the full SHA c6b20afView commit details