@azteam/rabbitmq-async 1.0.115 → 1.0.118

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azteam/rabbitmq-async",
3
- "version": "1.0.115",
3
+ "version": "1.0.118",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "engines": {
@@ -16,7 +16,7 @@
16
16
  "author": "toda <sp.azsolution.net@gmail.com>",
17
17
  "license": "MIT",
18
18
  "dependencies": {
19
- "@azteam/util": "1.0.10",
19
+ "@azteam/util": "1.0.11",
20
20
  "amqplib": "0.8.0"
21
21
  }
22
22
  }
@@ -8,7 +8,6 @@ class RabbitMQAsync {
8
8
  this.password = config.password;
9
9
  this.host = config.host;
10
10
  this.prefix = config.prefix;
11
-
12
11
  this.connect();
13
12
  }
14
13
 
@@ -127,6 +126,7 @@ class RabbitMQAsync {
127
126
  await messageQueue.send(messageQueue.parsePrefix('RETRY'), {
128
127
  queueName,
129
128
  data,
129
+ retry_time: new Date(),
130
130
  });
131
131
  }
132
132
  } else {
@@ -141,6 +141,7 @@ class RabbitMQAsync {
141
141
  } catch (err) {
142
142
  try {
143
143
  channel && channel.close();
144
+ // eslint-disable-next-line no-shadow
144
145
  } catch (err) {}
145
146
  await timeout(5000);
146
147
  callbackError && callbackError(prefixQueueName, err);