File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ var genericPool = require('generic-pool');
6
6
7
7
module . exports = function ( Client ) {
8
8
var pools = {
9
+ Client : Client ,
9
10
//dictionary of all key:pool pairs
10
11
all : { } ,
11
12
//reference to the client constructor - can override in tests or for require('pg').native
@@ -23,7 +24,7 @@ module.exports = function(Client) {
23
24
reapIntervalMillis : clientConfig . reapIntervalMillis || defaults . reapIntervalMillis ,
24
25
log : clientConfig . poolLog || defaults . poolLog ,
25
26
create : function ( cb ) {
26
- var client = new Client ( clientConfig ) ;
27
+ var client = new pools . Client ( clientConfig ) ;
27
28
// Ignore errors on pooled clients until they are connected.
28
29
client . on ( 'error' , Function . prototype ) ;
29
30
client . connect ( function ( err ) {
You can’t perform that action at this time.
0 commit comments