mirror of
https://github.com/nodemailer/wildduck.git
synced 2025-03-04 20:03:11 +08:00
fixed redis setup
This commit is contained in:
parent
a40dce26f1
commit
817169062d
1 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class ImapNotifier extends EventEmitter {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
this.database = options.database;
|
this.database = options.database;
|
||||||
this.publisher = options.redis || redis.createClient(tools.redisConfig(config.redis));
|
this.publisher = options.redis || redis.createClient(tools.redisConfig(config.dbs.redis));
|
||||||
this.cachedcounter = counters(this.publisher).cachedcounter;
|
this.cachedcounter = counters(this.publisher).cachedcounter;
|
||||||
|
|
||||||
this.logger = options.logger || {
|
this.logger = options.logger || {
|
||||||
|
@ -29,7 +29,7 @@ class ImapNotifier extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Subscriber needs its own client connection. This is relevant only in the context of IMAP
|
// Subscriber needs its own client connection. This is relevant only in the context of IMAP
|
||||||
this.subsriber = redis.createClient(tools.redisConfig(config.redis));
|
this.subsriber = redis.createClient(tools.redisConfig(config.dbs.redis));
|
||||||
this._listeners = new EventEmitter();
|
this._listeners = new EventEmitter();
|
||||||
this._listeners.setMaxListeners(0);
|
this._listeners.setMaxListeners(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue