Skip to content

Commit

Permalink
fix(example): correct records-number param in txn producer readme (#2420
Browse files Browse the repository at this point in the history
)
  • Loading branch information
diallo-han committed Jan 17, 2023
1 parent a3fb3f9 commit 871b1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/txn_producer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This example shows you how to use the Sarama transactional producer. The example simply starts some goroutine that produce endlesslly on associated topic.

```bash
$ go run main.go -brokers="127.0.0.1:9092" -topic="sarama" -producers=10 -record-numbers=10000
$ go run main.go -brokers="127.0.0.1:9092" -topic "sarama" -producers 10 -records-number 10000
```

To ensure transactional-id uniqueness it implement some ***ProducerProvider*** that build a producer appending an integer that grow when producer is created.
You can also see record-rate each 5s printing on stdout.
You can also see record-rate each 5s printing on stdout.

0 comments on commit 871b1b1

Please sign in to comment.