option.maxConnections of 1 should not create a ClientPool
This commit is contained in:
parent
1396c551f8
commit
6c7e33763a
|
@ -54,7 +54,7 @@ module.exports = {
|
||||||
if (typeof (options.log) !== 'object')
|
if (typeof (options.log) !== 'object')
|
||||||
throw new TypeError('options.log must be an object');
|
throw new TypeError('options.log must be an object');
|
||||||
|
|
||||||
if (options.maxConnections >= 1)
|
if (options.maxConnections > 1)
|
||||||
return new ClientPool(options);
|
return new ClientPool(options);
|
||||||
|
|
||||||
return new Client(options);
|
return new Client(options);
|
||||||
|
|
Loading…
Reference in New Issue