We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a19e72e commit 2ccf0c4Copy full SHA for 2ccf0c4
lib/index.js
@@ -43,6 +43,10 @@ PG.prototype.connect = function(config, callback) {
43
44
if(pool) return pool.acquire(cb);
45
46
+ var poolSize = defaults.poolSize;
47
+ if (c.poolSize) {
48
+ poolSize = c.poolSize;
49
+ }
50
var pool = pools[poolName] = genericPool.Pool({
51
name: poolName,
52
create: function(callback) {
@@ -75,7 +79,7 @@ PG.prototype.connect = function(config, callback) {
75
79
destroy: function(client) {
76
80
client.end();
77
81
},
78
- max: defaults.poolSize,
82
+ max: poolSize,
83
idleTimeoutMillis: defaults.poolIdleTimeout,
84
reapIntervalMillis: defaults.reapIntervalMillis
85
});
0 commit comments