Skip to content

Commit 9a8cd15

Browse files
committed
Merge pull request #350 from ecanzonieri/enable_commit_on_seek
Enable commit on seek
2 parents 1dd7b17 + a049e19 commit 9a8cd15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: kafka/consumer/simple.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ def seek(self, offset, whence):
214214

215215
# Reset queue and fetch offsets since they are invalid
216216
self.fetch_offsets = self.offsets.copy()
217+
self.count_since_commit += 1
217218
if self.auto_commit:
218-
self.count_since_commit += 1
219219
self.commit()
220220

221221
self.queue = Queue()

0 commit comments

Comments
 (0)