Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 6d45e36

Browse files
committed
Shutting off health check for now
1 parent 1225388 commit 6d45e36

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

utils/kafka.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@ class Kafka {
6565

6666
// check if there is kafka connection alive
6767
check() {
68-
if (!this.consumer.client.initialBrokers && !this.consumer.client.initialBrokers.length) {
69-
logger.info(`Brokers Exist Check Failed ${this.consumer.client.initialBrokers} ${this.consumer.client.initialBrokers.length}`)
70-
return false;
71-
}
72-
let connected = true;
73-
this.consumer.client.initialBrokers.forEach((conn) => {
74-
logger.info(`Brokers Check Failed ${conn.connected}`)
75-
connected = conn.connected && connected;
76-
});
68+
// if (!this.consumer.client.initialBrokers && !this.consumer.client.initialBrokers.length) {
69+
// logger.info(`Brokers Exist Check Failed ${this.consumer.client.initialBrokers} ${this.consumer.client.initialBrokers.length}`)
70+
// return false;
71+
// }
72+
// let connected = true;
73+
// this.consumer.client.initialBrokers.forEach((conn) => {
74+
// logger.info(`Brokers Check Failed ${conn.connected}`)
75+
// connected = conn.connected && connected;
76+
// });
7777

78-
return connected;
78+
// return connected;
79+
return true;
7980
}
8081

8182
run() {

0 commit comments

Comments
 (0)