Skip to content

Commit

Permalink
Merge pull request #65 from RunOnFlux/development
Browse files Browse the repository at this point in the history
Patch master node verification loop
  • Loading branch information
alihm authored Jun 7, 2024
2 parents 5f820d4 + 36df497 commit 3ed2dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ClusterOperator/Operator.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,13 +629,13 @@ class Operator {
if (appIPList[i].ip.includes(':')) appIPList[i].ip = appIPList[i].ip.split(':')[0];
this.AppNodes.push(appIPList[i].ip);
}
if (this.masterNode && !checkMasterIp) {
/* if (this.masterNode && !checkMasterIp) {
log.info('master removed from the list, should find a new master', 'yellow');
this.masterNode = null;
this.IamMaster = false;
await this.findMaster();
this.initMasterConnection();
}
} */
if (this.IamMaster && this.serverSocket.engine.clientsCount < 1) {
log.info('No incomming connections, should find a new master', 'yellow');
await this.findMaster();
Expand Down

0 comments on commit 3ed2dba

Please sign in to comment.