@autofleet/rabbit 3.4.0-beta.4 → 3.4.0-beta.5
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
|
@@ -826,7 +826,7 @@ class RabbitMq {
|
|
|
826
826
|
throw new Error(`rabbit: couldnt get connection for new channel ${name}`);
|
|
827
827
|
}
|
|
828
828
|
debug('rabbit: getNewChannelOld', { localConnection });
|
|
829
|
-
const channel = localConnection
|
|
829
|
+
const channel = localConnection?.createChannel({ ...options });
|
|
830
830
|
(0, events_1.once)(channel, 'close').then((args) => {
|
|
831
831
|
logger_1.default.error(`rabbit: channel ${name} closed`);
|
|
832
832
|
onClose?.(args);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1095,7 +1095,7 @@ class RabbitMq implements IAfRabbitMq {
|
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
1097
|
debug('rabbit: getNewChannelOld', { localConnection });
|
|
1098
|
-
const channel = localConnection
|
|
1098
|
+
const channel = localConnection?.createChannel({ ...options });
|
|
1099
1099
|
once(channel, 'close').then((args) => {
|
|
1100
1100
|
logger.error(`rabbit: channel ${name} closed`);
|
|
1101
1101
|
onClose?.(args);
|