diff options
Diffstat (limited to 'kafka/consumer/group.py')
-rw-r--r-- | kafka/consumer/group.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kafka/consumer/group.py b/kafka/consumer/group.py index 9ce1438..4930ba1 100644 --- a/kafka/consumer/group.py +++ b/kafka/consumer/group.py @@ -452,10 +452,10 @@ class KafkaConsumer(six.Iterator): """ assert self._subscription.is_assigned(partition) - offset = self._subscription.assignment[partition].consumed + offset = self._subscription.assignment[partition].position if offset is None: self._update_fetch_positions(partition) - offset = self._subscription.assignment[partition].consumed + offset = self._subscription.assignment[partition].position return offset def pause(self, *partitions): |