Parcourir la source

fix status func calls

abhishek9686 il y a 5 mois
Parent
commit
45e5d52b19
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 1 1
      logic/extpeers.go
  2. 1 1
      logic/hosts.go

+ 1 - 1
logic/extpeers.go

@@ -428,7 +428,7 @@ func GetAllExtClientsWithStatus(status models.NodeStatus) ([]models.ExtClient, e
 	var validExtClients []models.ExtClient
 	for _, extClient := range extClients {
 		node := extClient.ConvertToStaticNode()
-		getNodeStatus(&node, false)
+		GetNodeCheckInStatus(&node, false)
 
 		if node.Status == status {
 			validExtClients = append(validExtClients, extClient)

+ 1 - 1
logic/hosts.go

@@ -122,7 +122,7 @@ func GetAllHostsWithStatus(status models.NodeStatus) ([]models.Host, error) {
 
 		nodes := GetHostNodes(&host)
 		for _, node := range nodes {
-			getNodeStatus(&node, false)
+			GetNodeCheckInStatus(&node, false)
 			if node.Status == status {
 				validHosts = append(validHosts, host)
 				break