summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2018-02-16 10:47:51 -0800
committerDana Powers <dana.powers@gmail.com>2018-02-16 10:47:51 -0800
commite03424ba8ff00bb7fee8bbab63adad2ee65f2ff5 (patch)
treef56a98dcc80b7faa6912ddf7b354665676c5dbe2
parentbf279eb9b545f6769cd78c62c319320999ebbb2f (diff)
downloadkafka-python-bootstrap_dns_lookup.tar.gz
Dont check connecting in old simple clientbootstrap_dns_lookup
-rw-r--r--kafka/client.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/client.py b/kafka/client.py
index 22918ac..9abc94b 100644
--- a/kafka/client.py
+++ b/kafka/client.py
@@ -76,7 +76,7 @@ class SimpleClient(object):
return conn
timeout = time.time() + self.timeout
- while time.time() < timeout and conn.connecting():
+ while time.time() < timeout:
if conn.connect() is ConnectionStates.CONNECTED:
break
else: