@mulingai-npm/redis 3.0.2 → 3.1.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.
@@ -10,7 +10,6 @@ export interface ChunkLogOptions {
10
10
  stt?: boolean;
11
11
  translation?: boolean;
12
12
  tts?: boolean;
13
- retryMs?: number;
14
13
  label?: string;
15
14
  }
16
15
  export declare class MulingstreamChunkLogger extends MulingstreamChunkManager {
@@ -13,10 +13,8 @@ const defaults = {
13
13
  stt: false,
14
14
  translation: false,
15
15
  tts: true,
16
- retryMs: undefined,
17
16
  label: ''
18
17
  };
19
- const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
20
18
  class MulingstreamChunkLogger extends mulingstream_chunk_manager_1.MulingstreamChunkManager {
21
19
  /* ------------ one chunk ------------------------------------ */
22
20
  /* ------------ one chunk ------------------------------------ */
@@ -25,7 +23,6 @@ class MulingstreamChunkLogger extends mulingstream_chunk_manager_1.MulingstreamC
25
23
  const prefix = cfg.label ? `[${cfg.label}] ` : '';
26
24
  let chunk = await this.getMulingstreamChunkById(roomId, chunkNumber);
27
25
  if (!chunk) {
28
- await sleep(cfg.retryMs);
29
26
  chunk = await this.getMulingstreamChunkById(roomId, chunkNumber);
30
27
  }
31
28
  if (!chunk) {
@@ -42,7 +39,6 @@ class MulingstreamChunkLogger extends mulingstream_chunk_manager_1.MulingstreamC
42
39
  const prefix = cfg.label ? `[${cfg.label}] ` : '';
43
40
  let chunks = await this.getRoomById(roomId);
44
41
  if (!(chunks === null || chunks === void 0 ? void 0 : chunks.length)) {
45
- await sleep(cfg.retryMs);
46
42
  chunks = await this.getRoomById(roomId);
47
43
  }
48
44
  if (!(chunks === null || chunks === void 0 ? void 0 : chunks.length)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mulingai-npm/redis",
3
- "version": "3.0.2",
3
+ "version": "3.1.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "repository": {