Use the same default timeout for async result

Some drivers are using 10 whereas the rest as a default of None.

Change-Id: I2008b08fa76cac74f49334f7174c6ad7161e097b
This commit is contained in:
Julien Danjou 2017-08-14 10:08:02 +02:00
parent 1b321bcfc1
commit e43dcfd2e1
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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):