Skip to content

Commit

Permalink
Fix issue in Client where this should be self (#708)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Haan <haanmd@gmail.com>
  • Loading branch information
sfrooster authored and hyperlink committed Jul 13, 2017
1 parent b483e5c commit 3fecae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ Client.prototype.sendOffsetRequest = function (payloads, cb) {
this.send(payloads, encoder, decoder, cb);
};

Client.prototype.refreshBrokerMetadata = function () {};
Client.prototype.refreshBrokerMetadata = function () { };

Client.prototype.sendGroupRequest = function (encode, decode, requestArgs) {
requestArgs = _.values(requestArgs);
Expand Down Expand Up @@ -538,7 +538,7 @@ Client.prototype.send = function (payloads, encoder, decoder, cb) {
// check payloads again
payloads = self.checkMetadatas(_payloads);
if (payloads[1].length) {
this.refreshBrokerMetadata();
self.refreshBrokerMetadata();
return cb(new errors.BrokerNotAvailableError('Could not find the leader'));
}

Expand Down

0 comments on commit 3fecae2

Please sign in to comment.