Skip to content

Commit

Permalink
version 0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-contreras-deel committed Aug 20, 2020
1 parent de8ee1c commit e0a3067
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.8.1 (2020-08-20)

### Added
- New `destroy` method in order to drain all pools and clear internal interval

# 0.8.0 (2020-05-13)

### Breaking changes
Expand Down
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,10 @@ module.exports = class RedisPool extends EventEmitter {

/**
* Closing all connection pools
*
*/
async destroy () {
clearInterval(this._statusInterval)

// https://github.com/coopernurse/node-pool/blob/v3.7.1/README.md#draining
return await Promise.all(Object.values(this.pools).map(p => p.drain().then(() => p.clear())) )
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redis-mpool",
"version": "0.8.0",
"version": "0.8.1",
"main": "./index.js",
"description": "Provides db pools for redis",
"url": "https://github.com/cartodb/node-redis-mpool",
Expand Down

0 comments on commit e0a3067

Please sign in to comment.