File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ var defaults = module.exports = {
33
33
//frequency to check for idle clients within the client pool
34
34
reapIntervalMillis : 1000 ,
35
35
36
+ //if true the most recently released resources will be the first to be allocated
37
+ returnToHead : false ,
38
+
36
39
//pool log function / boolean
37
40
poolLog : false ,
38
41
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ module.exports = function(Client) {
22
22
max : clientConfig . poolSize || defaults . poolSize ,
23
23
idleTimeoutMillis : clientConfig . poolIdleTimeout || defaults . poolIdleTimeout ,
24
24
reapIntervalMillis : clientConfig . reapIntervalMillis || defaults . reapIntervalMillis ,
25
+ returnToHead : clientConfig . returnToHead || defaults . returnToHead ,
25
26
log : clientConfig . poolLog || defaults . poolLog ,
26
27
create : function ( cb ) {
27
28
var client = new pools . Client ( clientConfig ) ;
You can’t perform that action at this time.
0 commit comments