You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Debugging Key Prefix Issue. Removed Ioredis types dev dep.
* bug-1: strip the prefix prior to binding listeners if using keyPrefix. (#20)
* bug-1: strip the prefix prior to binding listeners if using keyPrefix.
* Additional strip / prepend logic to account for ioredis xgroup not using keyPrefix.
---------
Co-authored-by: Zach Sherbondy <[email protected]>
Co-authored-by: Zach Sherbondy <[email protected]>
* Removed debug logs. Changed createConsumerGroup debug log to the new stream name with the prefix if existent.
Reverted example apps state.
* Bumped version to 1.2.0.
---------
Co-authored-by: Zach <[email protected]>
Co-authored-by: Zach Sherbondy <[email protected]>
Co-authored-by: Zach Sherbondy <[email protected]>
).map((stream: string)=>'>'),// '>', this is needed for xreadgroup as id.
276
289
);
277
290
278
291
// if BLOCK time ended, and results are null, listen again.
@@ -285,10 +298,32 @@ export class RedisStreamStrategy
285
298
286
299
returnthis.listenOnStreams();
287
300
}catch(error){
301
+
console.log('Error in listenOnStreams: ',error);
288
302
this.logger.error(error);
289
303
}
290
304
}
291
305
306
+
// When the stream handler name is stored in streamHandlerMap, its stored WITH the key prefix, so sending additional redis commands when using the prefix with the existing key will cause a duplicate prefix. This ensures to strip the first occurrence of the prefix when binding listeners.
0 commit comments