Skip to content

Commit

Permalink
add actions for subscriber
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Sep 19, 2018
1 parent ba4201c commit 19947b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/cluster/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,9 @@ Cluster.prototype.refreshSlotsCache = function (callback) {
debug('getting slot cache from %s', key);
if (_this.subscriber === node) {
debug('skipping because the node is the subscriber');
lastNodeError = new Error('Node is the subscriber');
tryNode(index + 1);
return;
}
_this.getInfoFromNode(node, function (err) {
if (_this.status === 'end') {
Expand Down

0 comments on commit 19947b3

Please sign in to comment.