Skip to content

Commit

Permalink
Merge branch 'main' into deploy/datasource-subquery
Browse files Browse the repository at this point in the history
# Conflicts:
#	src/modulesConfig/bullModule.forRoot.ts
  • Loading branch information
mckrava committed Jan 16, 2024
2 parents d9ddaba + 2c439c6 commit c0f2341
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/modulesConfig/bullModule.forRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ import { SharedBullAsyncConfiguration } from '@nestjs/bull/dist/interfaces';
export default {
inject: [AppConfig],
useFactory: (config: AppConfig) => {

console.log('config.AGGREGATOR_REDIS_HOST - ', config.AGGREGATOR_REDIS_HOST)
console.log('config.AGGREGATOR_REDIS_PORT - ', config.AGGREGATOR_REDIS_PORT)
console.log('config.AGGREGATOR_REDIS_PASSWORD - ', config.AGGREGATOR_REDIS_PASSWORD)
console.log('config.AGGREGATOR_REDIS_PREFIX - ', config.AGGREGATOR_REDIS_PREFIX)

const getClient = () => {
const client = new Redis({
host: config.AGGREGATOR_REDIS_HOST,
Expand All @@ -23,6 +17,7 @@ export default {
...(config.AGGREGATOR_REDIS_ENABLE_SSL
? { tls: {}, connectTimeout: 60_000 }
: {}),

retryStrategy: (times) => {
if (times > 100) {
console.log('Redis reconnect stopped. ');
Expand All @@ -36,7 +31,6 @@ export default {

console.log('Redis client isCluster - ', client.isCluster);
console.log('Redis client mode - ', client.mode);

client.on('connect', () => {
console.log('Redis client connect');
});
Expand Down

0 comments on commit c0f2341

Please sign in to comment.