diff options
author | Dana Powers <dana.powers@gmail.com> | 2019-12-29 16:06:24 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-29 16:06:24 -0800 |
commit | 2a86b23f477e5ed57aa987db97d11284a37d05a0 (patch) | |
tree | 391d4d2d99db38eb2f9869d76592851bbae57cf2 /kafka/consumer/subscription_state.py | |
parent | 1a91a54688cb77fd77c342e719f24f346d5cee89 (diff) | |
download | kafka-python-2a86b23f477e5ed57aa987db97d11284a37d05a0.tar.gz |
Optionally return OffsetAndMetadata from consumer.committed(tp) (#1979)
Diffstat (limited to 'kafka/consumer/subscription_state.py')
-rw-r--r-- | kafka/consumer/subscription_state.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kafka/consumer/subscription_state.py b/kafka/consumer/subscription_state.py index 76a6c50..08842d1 100644 --- a/kafka/consumer/subscription_state.py +++ b/kafka/consumer/subscription_state.py @@ -374,7 +374,7 @@ class SubscriptionState(object): class TopicPartitionState(object): def __init__(self): - self.committed = None # last committed position + self.committed = None # last committed OffsetAndMetadata self.has_valid_position = False # whether we have valid position self.paused = False # whether this partition has been paused by the user self.awaiting_reset = False # whether we are awaiting reset |