Skip to content

Commit 703f065

Browse files
dpkpjeffwidman
authored andcommitted
Fix default protocol parser version
1 parent 5d7a5fc commit 703f065

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

kafka/conn.py

+3
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ def __init__(self, host, port, afi, **configs):
230230

231231
self.node_id = self.config.pop('node_id')
232232

233+
if self.config['api_version'] is None:
234+
self.config['api_version'] = self.DEFAULT_CONFIG['api_version']
235+
233236
if self.config['receive_buffer_bytes'] is not None:
234237
self.config['socket_options'].append(
235238
(socket.SOL_SOCKET, socket.SO_RCVBUF,

0 commit comments

Comments
 (0)