mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-09-06 09:56:09 +00:00
Fixed ExponentialBackoff not working when integral
This commit is contained in:
@ -61,7 +61,7 @@ class ExponentialBackoff:
|
||||
rand = random.Random()
|
||||
rand.seed()
|
||||
|
||||
self._randfunc = rand.rand_range if integral else rand.uniform
|
||||
self._randfunc = rand.randrange if integral else rand.uniform
|
||||
|
||||
def delay(self):
|
||||
"""Compute the next delay
|
||||
|
Reference in New Issue
Block a user