@konplit-services/common 1.0.317 → 1.0.319
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.
|
@@ -48,7 +48,7 @@ class Listener {
|
|
|
48
48
|
* Acknowledgment wait time of 5 seconds before retrying.
|
|
49
49
|
* @protected
|
|
50
50
|
*/
|
|
51
|
-
this.ackWait = (0, nats_1.nanos)(5 * 1000); // acknowledge time of 5
|
|
51
|
+
this.ackWait = (0, nats_1.nanos)(5 * 60 * 1000); // acknowledge time of 5 minutes before retry
|
|
52
52
|
this.client = client;
|
|
53
53
|
this.nc = nc;
|
|
54
54
|
}
|
|
@@ -188,7 +188,7 @@ class Listener {
|
|
|
188
188
|
filter_subject: subject,
|
|
189
189
|
deliver_policy: nats_1.DeliverPolicy.All,
|
|
190
190
|
ack_wait: this.ackWait,
|
|
191
|
-
max_deliver:
|
|
191
|
+
max_deliver: 576, //5 minutes * 576 equals two days assuming the system is down
|
|
192
192
|
};
|
|
193
193
|
yield jsm.consumers.add(streamName, consumerConfig);
|
|
194
194
|
console.log(`Consumer '${durableName}' created`);
|