Showing 2 of 2 total issues
Function connect
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Disque.prototype.connect = function (callback) {
if (this.status === 'connecting' || this.status === 'connect') {
return false;
}
this.setStatus('connecting');
Function connectToNext
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function connectToNext() {
_this.currentPoint += 1;
if (_this.currentPoint === _this.options.disqueNodes.length) {
_this.emit('error', new Error('All nodes are unreachable.'));
return;