Skip to content

Commit

Permalink
fix producer createTopics success without callback topics (#618)
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrc authored and hyperlink committed Mar 8, 2017
1 parent c76a3d6 commit e4fcfe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/client.js
Expand Up @@ -393,7 +393,7 @@ Client.prototype.createTopics = function (topics, isAsync, cb) {
const left = _.difference(topics, kafkaTopics);
if (left.length === 0) {
logger.debug(`Topics created ${kafkaTopics}`);
return cb(null);
return cb(null, kafkaTopics);
}

logger.debug(`Topics left ${left.join(', ')}`);
Expand Down

0 comments on commit e4fcfe1

Please sign in to comment.