summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Danjou <julien@danjou.info>2017-08-14 10:08:02 +0200
committerJulien Danjou <julien@danjou.info>2017-08-14 10:08:02 +0200
commite43dcfd2e1ff9eb1808b401d9f7dd56291d6ae03 (patch)
treee6edc8c4291caef781a9997caa6515e351b75707
parent1b321bcfc175dbac847d2c6b88802273a6014768 (diff)
downloadtooz-e43dcfd2e1ff9eb1808b401d9f7dd56291d6ae03.tar.gz
Use the same default timeout for async result
Some drivers are using 10 whereas the rest as a default of None. Change-Id: I2008b08fa76cac74f49334f7174c6ad7161e097b
-rwxr-xr-xtooz/coordination.py2
-rw-r--r--tooz/drivers/zookeeper.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/tooz/coordination.py b/tooz/coordination.py
index f118792..332764e 100755
--- a/tooz/coordination.py
+++ b/tooz/coordination.py
@@ -636,7 +636,7 @@ class CoordAsyncResult(object):
"""
@abc.abstractmethod
- def get(self, timeout=10):
+ def get(self, timeout=None):
"""Retrieve the result of the corresponding asynchronous call.
:param timeout: block until the timeout expire.
diff --git a/tooz/drivers/zookeeper.py b/tooz/drivers/zookeeper.py
index 52f151e..e033c05 100644
--- a/tooz/drivers/zookeeper.py
+++ b/tooz/drivers/zookeeper.py
@@ -540,7 +540,7 @@ class ZooAsyncResult(coordination.CoordAsyncResult):
self._handler = handler
self._kwargs = kwargs
- def get(self, timeout=10):
+ def get(self, timeout=None):
return self._handler(self._kazoo_async_result, timeout, **self._kwargs)
def done(self):