From b45c99e14922f9fed7e20de62eb5eb1b67e42bc4 Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sat, 12 Aug 2017 12:31:55 -0700 Subject: Use subscription arg, not self._subscription --- kafka/coordinator/consumer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kafka') diff --git a/kafka/coordinator/consumer.py b/kafka/coordinator/consumer.py index 34b9cc0..123699f 100644 --- a/kafka/coordinator/consumer.py +++ b/kafka/coordinator/consumer.py @@ -164,7 +164,7 @@ class ConsumerCoordinator(BaseCoordinator): def _build_metadata_snapshot(self, subscription, cluster): metadata_snapshot = {} - for topic in self._subscription.group_subscription(): + for topic in subscription.group_subscription(): partitions = cluster.partitions_for_topic(topic) or [] metadata_snapshot[topic] = set(partitions) return metadata_snapshot -- cgit v1.2.1