Skip to content

Commit

Permalink
fix remove offline server
Browse files Browse the repository at this point in the history
  • Loading branch information
cheyx committed Oct 8, 2024
1 parent 5466e43 commit e20ed29
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public boolean isEnableServer(final String ip) {

/**
* Remove unused server IP.
*
*
* @return num of server IP to be removed
*/
public int removeOfflineServers() {
Expand All @@ -132,7 +132,7 @@ public int removeOfflineServers() {
return;
}
String status = jobNodeStorage.getJobNodeData(serverNode.getServerNode(serverIp));
if (StringUtils.isNotBlank(status)) {
if (StringUtils.isBlank(status)) {
return;
}
jobNodeStorage.removeJobNodeIfExisted(serverNode.getServerNode(serverIp));
Expand Down

0 comments on commit e20ed29

Please sign in to comment.