chore: [Vultr SD] fixed typo in vultr sd code comments

This commit is contained in:
Jiekun 2024-10-14 15:25:17 +08:00
parent 3c73dbbacc
commit 09a458f931
No known key found for this signature in database
GPG key ID: 4674A8E5B0AAF6CE

View file

@ -44,7 +44,7 @@ type SDConfig struct {
var configMap = discoveryutils.NewConfigMap()
// GetLabels returns gce labels according to sdc.
// GetLabels returns Vultr instances' labels according to sdc.
func (sdc *SDConfig) GetLabels(baseDir string) ([]*promutils.Labels, error) {
ac, err := getAPIConfig(sdc, baseDir)
if err != nil {
@ -62,7 +62,7 @@ func (sdc *SDConfig) MustStop() {
_ = configMap.Delete(sdc)
}
// getInstanceLabels returns labels for vultr instances obtained from the given cfg
// getInstanceLabels returns labels for Vultr instances obtained from the given cfg
func getInstanceLabels(instances []Instance, port int) []*promutils.Labels {
ms := make([]*promutils.Labels, 0, len(instances))