Skip to content
Snippets Groups Projects

Désactive l'utilisation de sentinel

Merged Sébastien DA ROCHA requested to merge development into master
2 files
+ 3
17
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -7,12 +7,7 @@ export class RedisHealthIndicator extends HealthIndicator {
async checkRedisConnection(redisConf: { sentinelHost: string, sentinelPort: number, groupName: string; }): Promise<HealthIndicatorResult> {
const client = new IORedis({
sentinels: [
{ host: redisConf.sentinelHost, port: redisConf.sentinelPort },
],
name: redisConf.groupName,
});
const client = new IORedis({ host: redisConf.sentinelHost, port: redisConf.sentinelPort});
await new Promise((resolve, reject) => {
client.on('ready', resolve);
@@ -33,4 +28,4 @@ export class RedisHealthIndicator extends HealthIndicator {
return this.getStatus('Redis', true);
}
}
\ No newline at end of file
}
Loading