mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-02-14 18:09:50 +00:00
Break here, continue there
Signed-off-by: Mikolaj Pawlikowski <mikolaj@pawlikowski.pl>
This commit is contained in:
@@ -92,6 +92,7 @@ func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
|
||||
// on error, there might be no response from the node
|
||||
if resp.Response == nil {
|
||||
output.OK = false
|
||||
continue
|
||||
}
|
||||
// if we get a response, let's check we get the expected nodes
|
||||
observedNodes := []string{}
|
||||
@@ -105,6 +106,7 @@ func CheckCluster(ctx context.Context) *models.ClusterHealthResults {
|
||||
for i, val := range observedNodes {
|
||||
if val != expectedNodes[i] {
|
||||
output.OK = false
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user