-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented default max-retry of 60s. (#275)
* Implemented default max-retry of 60s. This means if any REST rate limit occurs that lasts more than 60 seconds, you will instead get a hikari.errors.RateLimitTooLongError get raised instead which contains details of how long to back off for should you wish to retry later. You can disable this functionality by passing `max_rate_limit=float("inf")` to the `hikari.impl.bot.BotApp` and `hikari.impl.rest.RESTApp` constructors if you have a reason to not want this. The assumption is that in 99% of cases, waiting for sustained periods of time would be confusing to the user and lead to a poorer user experience overall, which is why this has been implemented. I still need to fix the tests. * Fix documentation and tests (#285) * Fix linting - Reorder `nox` to generate pages last - Made isort ignore __init__.pyi files Co-authored-by: davfsa <[email protected]>
- Loading branch information
Showing
9 changed files
with
547 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[settings] | ||
profile = black | ||
force_single_line = true | ||
skip_glob = **/__init__.pyi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.