Skip to content

Commit 9dd1714

Browse files
authored
Also update config api_version to closest compatible (#2567)
1 parent 6c2c25d commit 9dd1714

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kafka/client_async.py

+1
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def __init__(self, **configs):
276276
if compatible_version:
277277
log.warning('Configured api_version %s not supported; using %s',
278278
self.config['api_version'], compatible_version)
279+
self.config['api_version'] = compatible_version
279280
self._api_versions = BROKER_API_VERSIONS[compatible_version]
280281
else:
281282
raise Errors.UnrecognizedBrokerVersion(self.config['api_version'])

0 commit comments

Comments
 (0)