Skip to content

Commit ac10e4d

Browse files
committed
chore: fix function name in comment
Signed-off-by: rocksload <[email protected]>
1 parent 758cf10 commit ac10e4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/models/clusters_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ type ClustersConfig struct {
3939
GCPConfig GCPConfig // stores GCP project name and filepath to service account JSON key
4040
}
4141

42-
// GetAPINodes returns a filtered list of API nodes based on the ClusterConfig and given hosts.
42+
// GetAPIHosts returns a filtered list of API hosts based on the ClusterConfig and given hosts.
4343
func (cc *ClusterConfig) GetAPIHosts(hosts []*Host) []*Host {
4444
return utils.Filter(hosts, func(h *Host) bool {
4545
return slices.Contains(cc.APINodes, h.NodeID)
4646
})
4747
}
4848

49-
// GetValidatorNodes returns the validator nodes from the ClusterConfig.
49+
// GetValidatorHosts returns the non-API hosts from the given hosts based on the ClusterConfig.
5050
func (cc *ClusterConfig) GetValidatorHosts(hosts []*Host) []*Host {
5151
return utils.Filter(hosts, func(h *Host) bool {
5252
return !slices.Contains(cc.APINodes, h.GetCloudID())

0 commit comments

Comments
 (0)