We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3898f5d commit 7612bbcCopy full SHA for 7612bbc
lib/pool.js
@@ -17,10 +17,10 @@ var pools = {
17
}
18
pool = genericPool.Pool({
19
name: name,
20
- max: defaults.poolSize,
21
- idleTimeoutMillis: defaults.poolIdleTimeout,
22
- reapIntervalMillis: defaults.reapIntervalMillis,
23
- log: defaults.poolLog,
+ max: clientConfig.poolSize || defaults.poolSize,
+ idleTimeoutMillis: clientConfig.poolIdleTimeout || defaults.poolIdleTimeout,
+ reapIntervalMillis: clientConfig.reapIntervalMillis || defaults.reapIntervalMillis,
+ log: clientConfig.poolLog || defaults.poolLog,
24
create: function(cb) {
25
var client = new pools.Client(clientConfig);
26
client.connect(function(err) {
0 commit comments