Skip to content

Commit

Permalink
pass options/callback args through to redis duplicate call (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
emadum authored Mar 27, 2019
1 parent 8277a05 commit bef363c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1680,10 +1680,12 @@ class Hydra extends EventEmitter {
/**
* @name _getClonedRedisClient
* @summary get a Redis client connection which points to the same Redis server that hydra is using
* @param {object} [options] - override options from original createClient call
* @param {function} [callback] - callback for async connect
* @return {object} - Redis Client
*/
_getClonedRedisClient() {
return this.redisdb.duplicate();
_getClonedRedisClient(options, callback) {
return this.redisdb.duplicate(options, callback);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hydra",
"version": "1.7.0",
"version": "1.7.1",
"license": "MIT",
"author": "Carlos Justiniano",
"contributors": "https://github.com/flywheelsports/hydra/graphs/contributors",
Expand Down

0 comments on commit bef363c

Please sign in to comment.