Skip to content

Commit c17ea4f

Browse files
committed
docs: remove trailing whitespace in readme
1 parent 627b38b commit c17ea4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ constructor. In addition to those options pools accept a few extras:
396396

397397
### connection
398398

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.
400400
If you need to set session variables on the connection before it gets used, you can
401401
listen to the `connection` event.
402402

@@ -465,7 +465,7 @@ poolCluster.getConnection('MASTER', function (err, connection) {});
465465
// Target Group : SLAVE1-2, Selector : order
466466
// If can't connect to SLAVE1, return SLAVE2. (remove SLAVE1 in the cluster)
467467
poolCluster.on('remove', function (nodeId) {
468-
console.log('REMOVED NODE : ' + nodeId); // nodeId = SLAVE1
468+
console.log('REMOVED NODE : ' + nodeId); // nodeId = SLAVE1
469469
});
470470

471471
poolCluster.getConnection('SLAVE*', 'ORDER', function (err, connection) {});
@@ -487,7 +487,7 @@ poolCluster.end(function (err) {
487487
### PoolCluster options
488488

489489
* `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.
491491
When `errorCount` is greater than `removeNodeErrorCount`, remove a node in the `PoolCluster`. (Default: `5`)
492492
* `restoreNodeTimeout`: If connection fails, specifies the number of milliseconds
493493
before another connection attempt will be made. If set to `0`, then node will be
@@ -1018,7 +1018,7 @@ connection.beginTransaction(function(err) {
10181018
return connection.rollback(function() {
10191019
throw error;
10201020
});
1021-
}
1021+
}
10221022
connection.commit(function(err) {
10231023
if (err) {
10241024
return connection.rollback(function() {

0 commit comments

Comments
 (0)