Sfoglia il codice sorgente

remove server from list

afeiszli 3 anni fa
parent
commit
d963ddd7ba
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 		}
 
-		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) {
 				fastestCandidate = &currentNetworkNodes[i]
 				minLatency = currentMetrics.Connectivity[currentNetworkNodes[i].ID].Latency