Skip to content

Commit c7e3451

Browse files
committed
Fetcher below would get client twice.
1 parent a7d5d80 commit c7e3451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kafka/consumer/group.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,8 @@ def __init__(self, *topics, **configs):
230230
metric_group_prefix = 'consumer'
231231
# TODO _metrics likely needs to be passed to KafkaClient, etc.
232232

233-
self._client = self.config['client'] or KafkaClient(**self.config)
233+
client = self.config.pop('client', None) or KafkaClient(**self.config)
234+
self._client = client
234235

235236
# Check Broker Version if not set explicitly
236237
if self.config['api_version'] == 'auto':

0 commit comments

Comments
 (0)