@@ -396,7 +396,7 @@ constructor. In addition to those options pools accept a few extras:
396
396
397
397
### connection
398
398
399
- The pool will emit a ` connection ` event when a new connection is made within the pool.
399
+ The pool will emit a ` connection ` event when a new connection is made within the pool.
400
400
If you need to set session variables on the connection before it gets used, you can
401
401
listen to the ` connection ` event.
402
402
@@ -465,7 +465,7 @@ poolCluster.getConnection('MASTER', function (err, connection) {});
465
465
// Target Group : SLAVE1-2, Selector : order
466
466
// If can't connect to SLAVE1, return SLAVE2. (remove SLAVE1 in the cluster)
467
467
poolCluster .on (' remove' , function (nodeId ) {
468
- console .log (' REMOVED NODE : ' + nodeId); // nodeId = SLAVE1
468
+ console .log (' REMOVED NODE : ' + nodeId); // nodeId = SLAVE1
469
469
});
470
470
471
471
poolCluster .getConnection (' SLAVE*' , ' ORDER' , function (err , connection ) {});
@@ -487,7 +487,7 @@ poolCluster.end(function (err) {
487
487
### PoolCluster options
488
488
489
489
* ` canRetry ` : If ` true ` , ` PoolCluster ` will attempt to reconnect when connection fails. (Default: ` true ` )
490
- * ` removeNodeErrorCount ` : If connection fails, node's ` errorCount ` increases.
490
+ * ` removeNodeErrorCount ` : If connection fails, node's ` errorCount ` increases.
491
491
When ` errorCount ` is greater than ` removeNodeErrorCount ` , remove a node in the ` PoolCluster ` . (Default: ` 5 ` )
492
492
* ` restoreNodeTimeout ` : If connection fails, specifies the number of milliseconds
493
493
before another connection attempt will be made. If set to ` 0 ` , then node will be
@@ -1018,7 +1018,7 @@ connection.beginTransaction(function(err) {
1018
1018
return connection .rollback (function () {
1019
1019
throw error;
1020
1020
});
1021
- }
1021
+ }
1022
1022
connection .commit (function (err ) {
1023
1023
if (err) {
1024
1024
return connection .rollback (function () {
0 commit comments