diff options
| author | Austin Hellyer <[email protected]> | 2016-11-06 15:37:22 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2016-11-06 15:37:22 -0800 |
| commit | f78a793d10b551564af8df48781e36cef3181f91 (patch) | |
| tree | fc5aa052c91069e7355629dbf5829ac153c75543 /examples/06_command_framework/src | |
| parent | Remove Context::get_voice_regions (diff) | |
| download | serenity-f78a793d10b551564af8df48781e36cef3181f91.tar.xz serenity-f78a793d10b551564af8df48781e36cef3181f91.zip | |
Fix old ratelimit resets breaking next requests
If the reset was in the past by a second, then multiplication to
determine the difference in time to wait would result in somewhere
around the max value of u64 being multiplied by 1000, which caused a
multiplication overflow.
Instead, if the retry is in the past, just ignore it, as it would have
already passed, and continue on with the request, setting the remaining
requests allowed by the bucket to the known limit.
Diffstat (limited to 'examples/06_command_framework/src')
0 files changed, 0 insertions, 0 deletions