Skip to content

Commit

Permalink
repeater: panic if group is not set
Browse files Browse the repository at this point in the history
Repeater does not work without a consumer group. It will start but not
do any work.
  • Loading branch information
nvartolomei committed Apr 10, 2024
1 parent d55c9b9 commit 96366a1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/kgo-repeater/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ func main() {
topicsList = strings.Split(*topic, ",")
}

if *group == "" {
panic("A consumer group must be provided via the -group flag")
}

dataInFlightPerWorker := (*initialDataMb * 1024 * 1024) / uint64(*workers)

if dataInFlightPerWorker / *payloadSize <= 0 {
Expand Down

0 comments on commit 96366a1

Please sign in to comment.