diff options
author | Andre Araujo <asdaraujo@gmail.com> | 2017-11-06 16:00:34 -0800 |
---|---|---|
committer | Jeff Widman <jeff@jeffwidman.com> | 2018-02-21 13:30:12 -0800 |
commit | 0f5d35fa3489fa36000c05a891d375cc30672e23 (patch) | |
tree | 0b8b15aa23544ff5f70e53423836711325700627 /kafka/protocol/commit.py | |
parent | 54d64105c0fec604140b581fd0b0fb3f7ac54b50 (diff) | |
download | kafka-python-0f5d35fa3489fa36000c05a891d375cc30672e23.tar.gz |
Check timeout type in KafkaClient constructor
If a future was passed as the only positional parameter it would
be assigned to the "timeout_ms" parameter erroneously. This mistake
would not raise any exception but would lead to odd behaviour later,
what could make it extremely difficult to troubleshoot.
Adding a type check ensures that an exception is raise earlier to
notify the user about the problem.
Diffstat (limited to 'kafka/protocol/commit.py')
0 files changed, 0 insertions, 0 deletions