Skip to content

Commit c6f11ba

Browse files
author
Kristiyan Ivanov
authored
Merge pull request #4599 from RedisInsight/RI-7091---testig-different-approaches
Ri 7091 testig different approaches
2 parents a81ed32 + 6f1ff6a commit c6f11ba

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

redisinsight/api/src/modules/database-discovery/local.database-discovery.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class LocalDatabaseDiscoveryService extends DatabaseDiscoveryService {
2626
firstRun?: boolean,
2727
): Promise<void> {
2828
try {
29-
// no need to auto discover for Redis Stack
29+
// No need to auto discover for Redis Stack - quick check
3030
if (SERVER_CONFIG.buildType === 'REDIS_STACK') {
3131
return;
3232
}

redisinsight/api/src/modules/init/local.init.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ export class LocalInitService extends InitService {
3232
await this.initAnalytics(firstStart);
3333
await this.featureService.recalculateFeatureFlags(sessionMetadata);
3434
await this.redisClientFactory.init();
35-
process.nextTick(async () => {
36-
await this.databaseDiscoveryService.discover(sessionMetadata, firstStart);
37-
});
35+
await this.databaseDiscoveryService.discover(sessionMetadata, firstStart);
3836
}
3937

4038
async initAnalytics(firstStart: boolean) {

0 commit comments

Comments
 (0)