diff options
author | Dana Powers <dana.powers@rd.io> | 2015-12-30 12:21:00 -0800 |
---|---|---|
committer | Dana Powers <dana.powers@rd.io> | 2015-12-30 12:21:00 -0800 |
commit | f161cd11aa63715979c544ddcaeeb0fabe57b3dd (patch) | |
tree | 733a6a0571f54250c4a5024fa757444f930bcf5b /kafka/coordinator/consumer.py | |
parent | 61161d8335bba3f1786f10a321a2a9e915adb286 (diff) | |
download | kafka-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.py | 4 |
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: |