Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/pool_master.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ function PoolMaster(r, options) {
}
util.inherits(PoolMaster, events.EventEmitter);

PoolMaster.prototype.getOptions = function() {
return this._options;
}

PoolMaster.prototype.getPools = function() {
var result = [];
helper.loopKeys(this._pools, function(pools, key) {
Expand Down Expand Up @@ -165,7 +169,7 @@ PoolMaster.prototype.handleAllServersResponse = function(servers) {
var found = false;
for(var j=0; j<self._pools[UNKNOWN_POOLS].length; j++) {
if (found) break;
var pool = self._pools[UNKNOWN_POOLS][j];
var pool = self._pools[UNKNOWN_POOLS][j];
// If a pool is created with localhost, it will probably match the first server even though it may not the the one
// So it gets an id
for(var k=0; k<server.network.canonical_addresses.length; k++) {
Expand Down Expand Up @@ -385,7 +389,7 @@ PoolMaster.prototype.fetchServers = function(useSeeds) {
return null;
}).error(function(error) {
self._log('Could not retrieve the data from server_status: '+JSON.stringify(error));

var timeout;
if (self._consecutiveFails === -1) {
timeout = 0;
Expand Down