Skip to content

Commit a84add1

Browse files
author
Robin Fehr
committed
add newlines
1 parent 9a7e699 commit a84add1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

docker-compose.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ services:
4747
KAFKA_CLUSTERS_0_ZOOKEEPER: zookeeper:2181
4848
networks:
4949
localnet:
50-
attachable: true
50+
attachable: true
51+

lib/kafka-consumer.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ function KafkaConsumer(conf, topicConf) {
9292

9393
// If rebalance is undefined we don't want any part of this
9494
if (onRebalance && typeof onRebalance === "boolean") {
95-
conf.rebalance_cb =
96-
conf["partition.assignment.strategy"] === "cooperative-sticky" ?
97-
cooperativeRebalanceCallback.bind(this) :
95+
conf.rebalance_cb =
96+
conf["partition.assignment.strategy"] === "cooperative-sticky" ?
97+
cooperativeRebalanceCallback.bind(this) :
9898
eagerRebalanceCallback.bind(this);
9999
} else if (onRebalance && typeof onRebalance === "function") {
100100
/*
@@ -724,4 +724,5 @@ module.exports = {
724724
KafkaConsumer: KafkaConsumer,
725725
eagerRebalanceCallback: eagerRebalanceCallback,
726726
cooperativeRebalanceCallback: cooperativeRebalanceCallback
727-
};
727+
};
728+

0 commit comments

Comments
 (0)