Skip to content

Commit 6f1ff6a

Browse files
committed
-
1 parent 3b92942 commit 6f1ff6a

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class AutoDatabaseDiscoveryService {
2222
) {}
2323

2424
/**
25-
* Start discovery process in background without blocking the main thread
25+
* Try to add standalone databases without auth from processes running on the host machine listening on TCP4
2626
* Database alias will be "host:port"
2727
*/
2828
async discover(sessionMetadata: SessionMetadata) {

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

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,16 @@ export class LocalDatabaseDiscoveryService extends DatabaseDiscoveryService {
2121
super();
2222
}
2323

24-
/**
25-
* Non-blocking implementation of database discovery
26-
* This returns quickly and performs the actual discovery work in the background
27-
*/
2824
async discover(
2925
sessionMetadata: SessionMetadata,
3026
firstRun?: boolean,
3127
): Promise<void> {
32-
// No need to auto discover for Redis Stack - quick check
33-
if (SERVER_CONFIG.buildType === 'REDIS_STACK') {
34-
return;
35-
}
36-
3728
try {
29+
// No need to auto discover for Redis Stack - quick check
30+
if (SERVER_CONFIG.buildType === 'REDIS_STACK') {
31+
return;
32+
}
33+
3834
// check agreements to understand if it is first launch
3935
const settings =
4036
await this.settingsService.getAppSettings(sessionMetadata);

0 commit comments

Comments
 (0)