Skip to content

Commit 1b035c2

Browse files
committed
Add consumer message cache for KafkaJS compability mode
1 parent dfe5a98 commit 1b035c2

File tree

8 files changed

+315
-42
lines changed

8 files changed

+315
-42
lines changed

examples/consumer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const { Kafka, ErrorCodes } = require('../').KafkaJS
2-
1+
const { Kafka, ErrorCodes } = require('confluent-kafka-javascript').KafkaJS;
32

43
async function consumerStart() {
54
let consumer;

examples/eos.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const { Kafka } = require('../').KafkaJS;
2-
//const { Kafka } = require('kafkajs')
1+
const { Kafka } = require('confluent-kafka-javascript').KafkaJS;
32

43
async function eosStart() {
54
const consumer = new Kafka().consumer({

examples/producer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const { Kafka } = require('../').KafkaJS
2-
//const { Kafka } = require('kafkajs')
1+
const { Kafka } = require('confluent-kafka-javascript').KafkaJS;
32

43
async function producerStart() {
54
const producer = new Kafka().producer({

0 commit comments

Comments
 (0)