Skip to content

Commit

Permalink
Default pool maxSize to 10.
Browse files Browse the repository at this point in the history
  • Loading branch information
pekim committed Oct 7, 2012
1 parent 40216c0 commit 0c23a9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/connection-pool.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ var connectionEventNames = [
function ConnectionPool(poolConfig, connectionConfig) {
var pool = this;

pool.config = poolConfig;
pool.config = poolConfig || {};
pool.config.maxSize = pool.config.maxSize || 10;

pool.requestNumber = 0;
pool.stats = {
maxSize: poolConfig.maxSize,
Expand Down

0 comments on commit 0c23a9a

Please sign in to comment.