Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Aug 21, 2024
1 parent e78630a commit 33055f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions receiver/prometheusreceiver/targetallocator/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, ".", "")

Expand All @@ -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
Expand Down

0 comments on commit 33055f0

Please sign in to comment.