@autofleet/rabbit 3.4.0-beta.5 → 3.4.0-beta.6
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/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -322,7 +322,7 @@ class RabbitMq {
|
|
|
322
322
|
logger_1.default.error(`rabbit: error on get connection for new channel ${name} `, { e });
|
|
323
323
|
throw e;
|
|
324
324
|
}
|
|
325
|
-
const channel = localConnection
|
|
325
|
+
const channel = localConnection?.createChannel({ ...options });
|
|
326
326
|
(0, events_1.once)(channel, 'close').then((args) => {
|
|
327
327
|
logger_1.default.error(`rabbit: channel ${name} closed`);
|
|
328
328
|
onClose?.(args);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -513,7 +513,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
513
513
|
logger.error(`rabbit: error on get connection for new channel ${name} `, { e });
|
|
514
514
|
throw e;
|
|
515
515
|
}
|
|
516
|
-
const channel = localConnection
|
|
516
|
+
const channel = localConnection?.createChannel({ ...options });
|
|
517
517
|
once(channel, 'close').then((args) => {
|
|
518
518
|
logger.error(`rabbit: channel ${name} closed`);
|
|
519
519
|
onClose?.(args);
|