Browse Source

remove server from list

afeiszli 2 years ago
parent
commit
d963ddd7ba
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ee/logic/failover.go

+ 1 - 1
ee/logic/failover.go

@@ -35,7 +35,7 @@ func determineFailoverCandidate(nodeToBeRelayed *models.Node) *models.Node {
 			continue
 			continue
 		}
 		}
 
 
-		if currentMetrics.Connectivity[currentNetworkNodes[i].ID].Connected && (currentNetworkNodes[i].Failover == "yes" || currentNetworkNodes[i].IsServer == "yes") {
+		if currentMetrics.Connectivity[currentNetworkNodes[i].ID].Connected && (currentNetworkNodes[i].Failover == "yes") {
 			if currentMetrics.Connectivity[currentNetworkNodes[i].ID].Latency < int64(minLatency) {
 			if currentMetrics.Connectivity[currentNetworkNodes[i].ID].Latency < int64(minLatency) {
 				fastestCandidate = &currentNetworkNodes[i]
 				fastestCandidate = &currentNetworkNodes[i]
 				minLatency = currentMetrics.Connectivity[currentNetworkNodes[i].ID].Latency
 				minLatency = currentMetrics.Connectivity[currentNetworkNodes[i].ID].Latency