Skip to content

Commit

Permalink
Set HWMO during creation of partitionConsumer
Browse files Browse the repository at this point in the history
  • Loading branch information
grongor committed Dec 5, 2021
1 parent 1c4079e commit 179dc9d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,9 @@ func (child *partitionConsumer) chooseStartingOffset(offset int64) error {
if err != nil {
return err
}

child.highWaterMarkOffset = newestOffset

oldestOffset, err := child.consumer.client.GetOffset(child.topic, child.partition, OffsetOldest)
if err != nil {
return err
Expand Down

0 comments on commit 179dc9d

Please sign in to comment.