This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments