Skip to content

Commit

Permalink
fix get controller (#1247)
Browse files Browse the repository at this point in the history
  • Loading branch information
BassemGhoniem authored and hyperlink committed Apr 29, 2019
1 parent ca179f1 commit 9d6d790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kafkaClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ KafkaClient.prototype.getController = function (callback) {
return callback(new errors.BrokerNotAvailableError('Controller broker not available'));
}

return callback(null, broker);
return callback(null, broker, this.clusterMetadata.controllerId);
});
};

Expand Down

0 comments on commit 9d6d790

Please # to comment.