summaryrefslogtreecommitdiff
path: root/kafka/coordinator/consumer.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@rd.io>2015-12-30 12:21:00 -0800
committerDana Powers <dana.powers@rd.io>2015-12-30 12:21:00 -0800
commitf161cd11aa63715979c544ddcaeeb0fabe57b3dd (patch)
tree733a6a0571f54250c4a5024fa757444f930bcf5b /kafka/coordinator/consumer.py
parent61161d8335bba3f1786f10a321a2a9e915adb286 (diff)
downloadkafka-python-f161cd11aa63715979c544ddcaeeb0fabe57b3dd.tar.gz
Make group_id a Coordinator kwarg (not arg) for consistency
Diffstat (limited to 'kafka/coordinator/consumer.py')
-rw-r--r--kafka/coordinator/consumer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py
index dd3eea0..3d5669e 100644
--- a/kafka/coordinator/consumer.py
+++ b/kafka/coordinator/consumer.py
@@ -47,6 +47,7 @@ class ConsumerProtocol(object):
class ConsumerCoordinator(AbstractCoordinator):
"""This class manages the coordination process with the consumer coordinator."""
DEFAULT_CONFIG = {
+ 'group_id': 'kafka-python-default-group',
'enable_auto_commit': True,
'auto_commit_interval_ms': 5000,
'default_offset_commit_callback': lambda offsets, error: True,
@@ -56,9 +57,8 @@ class ConsumerCoordinator(AbstractCoordinator):
'retry_backoff_ms': 100,
}
- def __init__(self, client, group_id, subscription, **configs):
"""Initialize the coordination manager."""
- super(ConsumerCoordinator, self).__init__(client, group_id, **configs)
+ super(ConsumerCoordinator, self).__init__(client, **configs)
self.config = copy.copy(self.DEFAULT_CONFIG)
for key in self.config:
if key in configs: