Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

add Offset setting #77

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func main() {
Concurrency: 100, // number of go routines processing messages in parallel
}

// receive all messages on the topic
config.Offsets.Initial.Offset = kafka.OffsetOldest

// Create the consumer through the previously created client
consumer, err := client.NewConsumer(config)
if err != nil {
Expand Down