Skip to content

Commit

Permalink
Remove batching warning closes #1178
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperlink committed Apr 22, 2019
1 parent 3c17c77 commit 7a9a4a8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions README.md
Expand Up @@ -156,7 +156,6 @@ producer.on('ready', function () {

producer.on('error', function (err) {})
```
> ⚠️**WARNING**: Batch multiple messages of the same topic/partition together as an array on the `messages` attribute otherwise you may lose messages!

### createTopics(topics, cb)
This method is used to create topics on the Kafka server. It requires Kafka 0.10+.
Expand Down Expand Up @@ -268,7 +267,6 @@ producer.on('ready', function () {
});
});
```
> ⚠️**WARNING**: Batch multiple messages of the same topic/partition together as an array on the `messages` attribute otherwise you may lose messages!

### createTopics(topics, async, cb)
This method is used to create topics on the Kafka server. It only work when `auto.create.topics.enable`, on the Kafka server, is set to true. Our client simply sends a metadata request to the server which will auto create topics. When `async` is set to false, this method does not return until all topics are created, otherwise it returns immediately.
Expand Down

0 comments on commit 7a9a4a8

Please sign in to comment.