Skip to content

Commit 89b4d08

Browse files
committed
Better handling of Kafka URL format
1 parent 110fbd6 commit 89b4d08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ async function configureKafkaConsumer (handlers) {
1616
// create group consumer
1717
let brokers = ['']
1818
if (config.KAFKA_URL.startsWith('ssl://')) {
19-
brokers = config.KAFKA_URL.split('ssl://')[1].split(',')
19+
brokers = _.replace(config.KAFKA_URL, 'ssl://', '').split(',')
2020
} else {
2121
brokers = config.KAFKA_URL.split(',')
2222
}

0 commit comments

Comments
 (0)