Redesign
This commit is contained in:
@@ -4,11 +4,9 @@
|
||||
*/
|
||||
import Redis from 'ioredis';
|
||||
import { logger } from '../logging/logger';
|
||||
import { getTenantConfig } from './tenant';
|
||||
import { appConfig } from './config-loader';
|
||||
|
||||
const tenant = getTenantConfig();
|
||||
|
||||
export const redis = new Redis(tenant.redisUrl, {
|
||||
export const redis = new Redis(appConfig.getRedisUrl(), {
|
||||
retryStrategy: (times) => Math.min(times * 50, 2000),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user