@autofleet/rabbit 1.5.7-2 → 1.5.7-3
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/.idea/workspace.xml +1 -1
- package/dist/index.js +3 -3
- package/package.json +1 -1
- package/src/index.ts +3 -3
package/.idea/workspace.xml
CHANGED
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
<workItem from="1609106672294" duration="594000" />
|
|
205
205
|
<workItem from="1609146731453" duration="21000" />
|
|
206
206
|
<workItem from="1609193609209" duration="1486000" />
|
|
207
|
-
<workItem from="1609629219943" duration="
|
|
207
|
+
<workItem from="1609629219943" duration="6138000" />
|
|
208
208
|
</task>
|
|
209
209
|
<task id="LOCAL-00001" summary="validate name before usage">
|
|
210
210
|
<created>1606375684964</created>
|
package/dist/index.js
CHANGED
|
@@ -52,9 +52,9 @@ class RabbitMq {
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
this.nack = (queue, options) => (msg, retries) => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
if (options
|
|
56
|
-
|
|
57
|
-
}
|
|
55
|
+
// if (options?.messageTtl) {
|
|
56
|
+
// msg.content['x-message-ttl'] = options.messageTtl;
|
|
57
|
+
// }
|
|
58
58
|
if (this.channel) {
|
|
59
59
|
if (!msg.content['x-retry-count'] || msg.content['x-retry-count'] <= retries) {
|
|
60
60
|
msg.content['x-retry-count'] = msg.content['x-retry-count'] ? msg.content['x-retry-count'] + 1 : 1;
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -83,9 +83,9 @@ class RabbitMq {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
public nack = (queue: string, options?: Options.AssertQueue) => async (msg: any, retries: number) => {
|
|
86
|
-
if (options?.messageTtl) {
|
|
87
|
-
|
|
88
|
-
}
|
|
86
|
+
// if (options?.messageTtl) {
|
|
87
|
+
// msg.content['x-message-ttl'] = options.messageTtl;
|
|
88
|
+
// }
|
|
89
89
|
if (this.channel) {
|
|
90
90
|
if (!msg.content['x-retry-count'] || msg.content['x-retry-count'] <= retries) {
|
|
91
91
|
msg.content['x-retry-count'] = msg.content['x-retry-count'] ? msg.content['x-retry-count'] + 1 : 1;
|