rethinkdbdash
Advanced tools
Comparing version 2.1.6 to 2.1.7
@@ -422,5 +422,2 @@ var util = require('util'); | ||
pool.on('empty', function() { | ||
if ((self._draining === false) && (self._discovery === true)) { | ||
//self.fetchServers(); | ||
} | ||
// A pool that become empty is considered unhealthy | ||
@@ -511,5 +508,5 @@ for(var i=0; i<self._healthyPools.length; i++) { | ||
if (self._options.silent !== true) { | ||
console.error('Failed to drain all the pools:'); | ||
console.error(error.message); | ||
console.error(error.stack); | ||
self._log('Failed to drain all the pools:'); | ||
self._log(error.message); | ||
self._log(error.stack); | ||
} | ||
@@ -516,0 +513,0 @@ }); |
{ | ||
"name": "rethinkdbdash", | ||
"version": "2.1.6", | ||
"version": "2.1.7", | ||
"description": "A Node.js driver for RethinkDB with promises and a connection pool", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -191,5 +191,5 @@ rethinkdbdash | ||
- `max`: `<number>` - Maximum number of connections available in the pool, default `1000` | ||
- `timeout`: `<number> - The number of seconds for a connection to be opened, default `20` | ||
- `timeout`: `<number>` - The number of seconds for a connection to be opened, default `20` | ||
- `timeoutError`: `<number>` - Wait time before reconnecting in case of an error (in ms), default 1000 | ||
- `timeoutGb`: `<number>` - How long the pool keep a connection that hasn't been used (in ms), default 60*60*1000 | ||
- `timeoutGb`: `<number>` - How long the pool keep a connection that hasn't been used (in ms), default 60\*60\*1000 | ||
- `maxExponent`: `<number>` - The maximum timeout before trying to reconnect is 2^maxExponent x timeoutError, default 6 (~60 seconds for the longest wait) | ||
@@ -196,0 +196,0 @@ - `silent`: <boolean> - console.error errors, default `false` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
821406
24872