@gravito/stream 1.0.0-beta.2 → 1.0.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/dist/index.cjs CHANGED
@@ -840,7 +840,6 @@ var init_RedisDriver = __esm({
840
840
  */
841
841
  async retryFailed(queue, count = 1) {
842
842
  const failedKey = `${this.getKey(queue)}:failed`;
843
- const queueKey = this.getKey(queue);
844
843
  let retried = 0;
845
844
  for (let i = 0; i < count; i++) {
846
845
  const payload = await this.client.rpop(failedKey);
@@ -1155,7 +1154,6 @@ var init_Scheduler = __esm({
1155
1154
  const now = Date.now();
1156
1155
  const dueIds = await this.client.zrangebyscore(`${this.prefix}schedules`, 0, now);
1157
1156
  let fired = 0;
1158
- const serializer = this.manager.getSerializer();
1159
1157
  for (const id of dueIds) {
1160
1158
  const lockKey = `${this.prefix}lock:schedule:${id}:${Math.floor(now / 1e3)}`;
1161
1159
  const lock = await this.client.set(lockKey, "1", "EX", 10, "NX");
package/dist/index.js CHANGED
@@ -835,7 +835,6 @@ var init_RedisDriver = __esm({
835
835
  */
836
836
  async retryFailed(queue, count = 1) {
837
837
  const failedKey = `${this.getKey(queue)}:failed`;
838
- const queueKey = this.getKey(queue);
839
838
  let retried = 0;
840
839
  for (let i = 0; i < count; i++) {
841
840
  const payload = await this.client.rpop(failedKey);
@@ -1150,7 +1149,6 @@ var init_Scheduler = __esm({
1150
1149
  const now = Date.now();
1151
1150
  const dueIds = await this.client.zrangebyscore(`${this.prefix}schedules`, 0, now);
1152
1151
  let fired = 0;
1153
- const serializer = this.manager.getSerializer();
1154
1152
  for (const id of dueIds) {
1155
1153
  const lockKey = `${this.prefix}lock:schedule:${id}:${Math.floor(now / 1e3)}`;
1156
1154
  const lock = await this.client.set(lockKey, "1", "EX", 10, "NX");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravito/stream",
3
- "version": "1.0.0-beta.2",
3
+ "version": "1.0.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -57,4 +57,4 @@
57
57
  "url": "git+https://github.com/gravito-framework/gravito.git",
58
58
  "directory": "packages/stream"
59
59
  }
60
- }
60
+ }