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