option.maxConnections of 1 should not create a ClientPool

This commit is contained in:
Kevin Chan 2012-08-03 15:52:06 -07:00
parent 1396c551f8
commit 6c7e33763a
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ module.exports = {
if (typeof (options.log) !== 'object')
throw new TypeError('options.log must be an object');
if (options.maxConnections >= 1)
if (options.maxConnections > 1)
return new ClientPool(options);
return new Client(options);