@imqueue/core 1.13.1 → 1.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/RedisQueue.js +6 -1
package/package.json
CHANGED
package/src/RedisQueue.js
CHANGED
|
@@ -494,7 +494,12 @@ class RedisQueue extends events_1.EventEmitter {
|
|
|
494
494
|
onReadyHandler(options, context, channel, resolve) {
|
|
495
495
|
return (async () => {
|
|
496
496
|
this.logger.info('%s: %s channel connected, host %s, pid %s', context.name, channel, this.redisKey, process.pid);
|
|
497
|
-
|
|
497
|
+
try {
|
|
498
|
+
await this.setChannelName(context[channel], context.name, options.prefix || '', channel);
|
|
499
|
+
}
|
|
500
|
+
catch (err) {
|
|
501
|
+
this.logger.warn('Error setting channel name:', err);
|
|
502
|
+
}
|
|
498
503
|
switch (channel) {
|
|
499
504
|
case 'reader':
|
|
500
505
|
this.read();
|