Skip to content

Commit 01b2e66

Browse files
authored
Merge pull request #1137 from rhansen2/remove-min-bytes
remove MinBytes from README examples
2 parents 199b8b2 + ca5772f commit 01b2e66

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ r := kafka.NewReader(kafka.ReaderConfig{
225225
Brokers: []string{"localhost:9092","localhost:9093", "localhost:9094"},
226226
Topic: "topic-A",
227227
Partition: 0,
228-
MinBytes: 10e3, // 10KB
229228
MaxBytes: 10e6, // 10MB
230229
})
231230
r.SetOffset(42)
@@ -256,7 +255,6 @@ r := kafka.NewReader(kafka.ReaderConfig{
256255
Brokers: []string{"localhost:9092", "localhost:9093", "localhost:9094"},
257256
GroupID: "consumer-group-id",
258257
Topic: "topic-A",
259-
MinBytes: 10e3, // 10KB
260258
MaxBytes: 10e6, // 10MB
261259
})
262260

@@ -320,7 +318,6 @@ r := kafka.NewReader(kafka.ReaderConfig{
320318
Brokers: []string{"localhost:9092", "localhost:9093", "localhost:9094"},
321319
GroupID: "consumer-group-id",
322320
Topic: "topic-A",
323-
MinBytes: 10e3, // 10KB
324321
MaxBytes: 10e6, // 10MB
325322
CommitInterval: time.Second, // flushes commits to Kafka every second
326323
})
@@ -719,7 +716,6 @@ r := kafka.NewReader(kafka.ReaderConfig{
719716
Brokers: []string{"localhost:9092", "localhost:9093", "localhost:9094"},
720717
Topic: "my-topic1",
721718
Partition: 0,
722-
MinBytes: batchSize,
723719
MaxBytes: batchSize,
724720
})
725721

0 commit comments

Comments
 (0)