Skip to content

Commit

Permalink
[CCI] doc: fix grammar (#427)
Browse files Browse the repository at this point in the history
* doc: fix grammar

Signed-off-by: Naurabay <[email protected]>

* chore: changelog

Signed-off-by: Naurabay <[email protected]>

---------

Signed-off-by: Naurabay <[email protected]>
  • Loading branch information
Naurabay authored Mar 11, 2023
1 parent a1a17a6 commit c67b4b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
- Added support for Amazon OpenSearch Serverless ([#356](https://github.com/opensearch-project/opensearch-js/issues/356))
- Added required `array` argument when invoking `SerializationError` ([#419](https://github.com/opensearch-project/opensearch-js/pull/419))
- Removed unnecessary `data` argument when invoking `OpenSearchClientError` ([#421](https://github.com/opensearch-project/opensearch-js/pull/421))
- Fixed typos in `ConnectionPool` ([#427](https://github.com/opensearch-project/opensearch-js/pull/427))

### Dependencies
- Bumps `xmlbuilder2` from 2.4.1 to 3.0.2
Expand Down
6 changes: 3 additions & 3 deletions lib/pool/ConnectionPool.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ConnectionPool extends BaseConnectionPool {

/**
* Marks a connection as 'dead'.
* If needed adds the connection to the dead list
* If needed, adds the connection to the dead list
* and then increments the `deadCount`.
*
* @param {object} connection
Expand All @@ -82,9 +82,9 @@ class ConnectionPool extends BaseConnectionPool {
const { id } = connection;
debug(`Marking as 'dead' connection '${id}'`);
if (this.dead.indexOf(id) === -1) {
// It might happen that `markDead` is called jsut after
// It might happen that `markDead` is called just after
// a pool update, and in such case we will add to the dead
// list a node that no longer exist. The following check verify
// list a node that no longer exists. The following check verifies
// that the connection is still part of the pool before
// marking it as dead.
for (let i = 0; i < this.size; i++) {
Expand Down

0 comments on commit c67b4b6

Please sign in to comment.