diff options
author | lukeWx <4403510+lukekingbru@users.noreply.github.com> | 2017-12-07 13:59:58 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2017-12-07 13:59:58 -0800 |
commit | 009290ddd5d4616d70bff93f841e773af8b22750 (patch) | |
tree | df366e68ddab543fbc71e4977d35d4a5ef1bf8d2 /kafka/client_async.py | |
parent | 5d1b13ef2812ddfe619495178f41e57b1fb640df (diff) | |
download | kafka-python-009290ddd5d4616d70bff93f841e773af8b22750.tar.gz |
use python standard max value (#1303)
Diffstat (limited to 'kafka/client_async.py')
-rw-r--r-- | kafka/client_async.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/client_async.py b/kafka/client_async.py index e36d78e..1350503 100644 --- a/kafka/client_async.py +++ b/kafka/client_async.py @@ -947,7 +947,7 @@ class DelayedTaskQueue(object): """Number of seconds until next task is ready.""" self._drop_removed() if not self._tasks: - return 9999999999 + return float('inf') else: return max(self._tasks[0][0] - time.time(), 0) |