From 33055f0e821331f19eca1beda1067cc268eb844b Mon Sep 17 00:00:00 2001 From: David Ashpole Date: Wed, 21 Aug 2024 20:19:26 +0000 Subject: [PATCH] fix comments --- receiver/prometheusreceiver/targetallocator/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/receiver/prometheusreceiver/targetallocator/config.go b/receiver/prometheusreceiver/targetallocator/config.go index 1a8583d036b9..07fc1d579a83 100644 --- a/receiver/prometheusreceiver/targetallocator/config.go +++ b/receiver/prometheusreceiver/targetallocator/config.go @@ -122,7 +122,7 @@ func unmarshalYAML(in map[string]any, out any) error { return nil } -// ConvertTLSVersion converts a string TLS version to the corresponding config.TLSVersion value in prometheus common. +// convertTLSVersion converts a string TLS version to the corresponding config.TLSVersion value in prometheus common. func convertTLSVersion(version string) (commonconfig.TLSVersion, error) { normalizedVersion := "TLS" + strings.ReplaceAll(version, ".", "") @@ -132,7 +132,7 @@ func convertTLSVersion(version string) (commonconfig.TLSVersion, error) { return 0, fmt.Errorf("unsupported TLS version: %s", version) } -// configureSDHTTPClientConfig configures the http client for the service discovery manager +// configureSDHTTPClientConfigFromTA configures the http client for the service discovery manager // based on the provided TargetAllocator configuration. func configureSDHTTPClientConfigFromTA(httpSD *promHTTP.SDConfig, allocConf *Config) error { httpSD.HTTPClientConfig.FollowRedirects = false