@zintrust/queue-redis 2.4.2 → 2.4.3

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.
@@ -2,7 +2,6 @@ import { Env } from '@zintrust/core/config';
2
2
  import { ErrorFactory } from '@zintrust/core/errors';
3
3
  import { JobStateTracker, TimeoutManager } from '@zintrust/core/queue';
4
4
  import { generateUuid } from '@zintrust/core/utils';
5
- const REDIS_RPC_PACKAGE = '@zintrust/redis-rpc';
6
5
  export const shouldUseRedisRpcQueueDriver = () => {
7
6
  return Env.USE_REDIS_PROXY === true && Env.get('REDIS_RPC_URL', '').trim() !== '';
8
7
  };
@@ -16,8 +15,8 @@ const resolveRpcBaseUrl = () => {
16
15
  };
17
16
  const createRpcClient = async () => {
18
17
  try {
19
- const mod = (await import(REDIS_RPC_PACKAGE));
20
- return mod.createRedisRpcClient({
18
+ const { createRedisRpcClient } = await import('@zintrust/redis-rpc/client');
19
+ return createRedisRpcClient({
21
20
  baseUrl: resolveRpcBaseUrl(),
22
21
  secret: Env.get('REDIS_RPC_SECRET', Env.get('REDIS_PROXY_SECRET', Env.APP_KEY)),
23
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zintrust/queue-redis",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Redis queue driver for ZinTrust.",
5
5
  "private": false,
6
6
  "type": "module",