Skip to content

Commit

Permalink
Merge pull request #62 from imnotjames/bugfix/js-kafka-client-buffers
Browse files Browse the repository at this point in the history
use 'buffer' for default JS Kafka encoding
  • Loading branch information
krystianity committed Jun 15, 2018
2 parents afddba8 + 5d28f54 commit c19f1b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/kafka/Kafka.js
Expand Up @@ -180,7 +180,9 @@ class Kafka extends EventEmitter {
fetchMaxWaitMs: 100,
autoCommit: autoCommit,
autoCommitIntervalMs: 5000,
connectRetryOptions: this.connectDirectlyToBroker ? DEFAULT_RETRY_OPTIONS : undefined
connectRetryOptions: this.connectDirectlyToBroker ? DEFAULT_RETRY_OPTIONS : undefined,
encoding: "buffer",
keyEncoding: "buffer"
};

//overwrite default options
Expand Down

0 comments on commit c19f1b3

Please sign in to comment.