This repository was archived by the owner on Mar 13, 2025. It is now read-only.
File tree 1 file changed +11
-10
lines changed
1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -65,17 +65,18 @@ class Kafka {
65
65
66
66
// check if there is kafka connection alive
67
67
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
+ // });
77
77
78
- return connected ;
78
+ // return connected;
79
+ return true ;
79
80
}
80
81
81
82
run ( ) {
You can’t perform that action at this time.
0 commit comments