diff options
author | Dana Powers <dana.powers@gmail.com> | 2018-02-16 10:47:51 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@gmail.com> | 2018-02-16 10:47:51 -0800 |
commit | e03424ba8ff00bb7fee8bbab63adad2ee65f2ff5 (patch) | |
tree | f56a98dcc80b7faa6912ddf7b354665676c5dbe2 | |
parent | bf279eb9b545f6769cd78c62c319320999ebbb2f (diff) | |
download | kafka-python-bootstrap_dns_lookup.tar.gz |
Dont check connecting in old simple clientbootstrap_dns_lookup
-rw-r--r-- | kafka/client.py | 2 |
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: |