summaryrefslogtreecommitdiff
path: root/kazoo/retry.py
diff options
context:
space:
mode:
authorHanno Schlichting <hanno@hannosch.eu>2012-07-25 23:37:59 +0300
committerHanno Schlichting <hanno@hannosch.eu>2012-07-25 23:37:59 +0300
commit2155bac984ddeaff5417e388c724de366020485c (patch)
tree245fd0e093c43e544862e2f69be7d9eb9757b6e0 /kazoo/retry.py
parenta6560e7b618d435cb125a8a25658696edf7efb44 (diff)
downloadkazoo-2155bac984ddeaff5417e388c724de366020485c.tar.gz
Update kazoo/retry.py
Force jitter to be an int (or random.randint fails), randint(0, 0) works
Diffstat (limited to 'kazoo/retry.py')
-rw-r--r--kazoo/retry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kazoo/retry.py b/kazoo/retry.py
index 03ea0f9..63d98f6 100644
--- a/kazoo/retry.py
+++ b/kazoo/retry.py
@@ -50,7 +50,7 @@ class KazooRetry(object):
self.max_tries = max_tries
self.delay = delay
self.backoff = backoff
- self.max_jitter = max_jitter * 100
+ self.max_jitter = int(max_jitter * 100)
self.retry_exceptions = self.RETRY_EXCEPTIONS
if ignore_expire:
self.retry_exceptions += self.EXPIRED_EXCEPTIONS