aboutsummaryrefslogtreecommitdiff
path: root/examples/06_command_framework
diff options
context:
space:
mode:
authorAustin Hellyer <[email protected]>2016-11-06 15:37:22 -0800
committerAustin Hellyer <[email protected]>2016-11-06 15:37:22 -0800
commitf78a793d10b551564af8df48781e36cef3181f91 (patch)
treefc5aa052c91069e7355629dbf5829ac153c75543 /examples/06_command_framework
parentRemove Context::get_voice_regions (diff)
downloadserenity-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')
0 files changed, 0 insertions, 0 deletions