@azteam/rabbitmq-async 1.0.116 → 1.0.117
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/RabbitMQAsync.js +2 -0
package/package.json
CHANGED
package/src/RabbitMQAsync.js
CHANGED
|
@@ -126,6 +126,7 @@ class RabbitMQAsync {
|
|
|
126
126
|
await messageQueue.send(messageQueue.parsePrefix('RETRY'), {
|
|
127
127
|
queueName,
|
|
128
128
|
data,
|
|
129
|
+
retry_time: new Date(),
|
|
129
130
|
});
|
|
130
131
|
}
|
|
131
132
|
} else {
|
|
@@ -140,6 +141,7 @@ class RabbitMQAsync {
|
|
|
140
141
|
} catch (err) {
|
|
141
142
|
try {
|
|
142
143
|
channel && channel.close();
|
|
144
|
+
// eslint-disable-next-line no-shadow
|
|
143
145
|
} catch (err) {}
|
|
144
146
|
await timeout(5000);
|
|
145
147
|
callbackError && callbackError(prefixQueueName, err);
|