@jetit/publisher 1.6.1 → 1.7.0

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": "@jetit/publisher",
3
- "version": "1.6.1",
3
+ "version": "1.7.0",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@jetit/id": "0.0.11",
@@ -225,12 +225,12 @@ class Streams {
225
225
  const streamName = `${eventName}:${this.consumerGroupName}`;
226
226
  const processMessage = (redisClient) => tslib_1.__awaiter(this, void 0, void 0, function* () {
227
227
  const racePr = new Promise((resolve, _) => {
228
- setTimeout(resolve, 500, 'RACE');
228
+ setTimeout(resolve, 1100, 'RACE');
229
229
  });
230
230
  console.log(`PUBLISHER: processMessage called for ${streamName} cgn: ${this.consumerGroupName} inst: ${this.instanceId}`);
231
231
  try {
232
232
  const prResult = yield Promise.race([
233
- redisClient.xreadgroup('GROUP', this.consumerGroupName, this.instanceId, 'COUNT', 1, 'BLOCK', 0, 'STREAMS', streamName, '>'),
233
+ redisClient.xreadgroup('GROUP', this.consumerGroupName, this.instanceId, 'COUNT', 1, 'BLOCK', 1000, 'STREAMS', streamName, '>'),
234
234
  racePr,
235
235
  ]);
236
236
  console.log(`PUBLISHER: Promise race resolved with ${JSON.stringify(prResult)}`);