We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0870468 commit 0ff07d0Copy full SHA for 0ff07d0
src/api.js
@@ -101,7 +101,7 @@ export class Api {
101
* @param {string=} prefix
102
* @param {string=} url
103
*/
104
- constructor (store, prefix = 'y', url) {
+ constructor (store, prefix = 'y', url = env.ensureConf('ysr-redis')) {
105
this.store = store
106
this.prefix = prefix
107
this.consumername = random.uuidv4()
@@ -118,7 +118,7 @@ export class Api {
118
this.redisWorkerGroupName = this.prefix + ':worker'
119
this._destroyed = false
120
this.redis = redis.createClient({
121
- url: url || env.ensureConf('ysr-redis'),
+ url,
122
// scripting: https://github.com/redis/node-redis/#lua-scripts
123
scripts: {
124
addMessage: redis.defineScript({
0 commit comments