Skip to content

Commit

Permalink
url -> parsedUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaasman00 committed Sep 26, 2024
1 parent 9635840 commit 50b1ad7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/opampsupervisor/supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,11 @@ func (s *Supervisor) startOpAMPClient() error {

// determine if we need to load a TLS config or not
var tlsConfig *tls.Config
url, err := url.Parse(s.config.Server.Endpoint)
parsedUrl, err := url.Parse(s.config.Server.Endpoint)
if err != nil {
return fmt.Errorf("parse server endpoint: %w", err)
}
if url.Scheme == "wss" || url.Scheme == "https" {
if parsedUrl.Scheme == "wss" || parsedUrl.Scheme == "https" {
tlsConfig, err = s.config.Server.TLSSetting.LoadTLSConfig(context.Background())
if err != nil {
return err
Expand Down

0 comments on commit 50b1ad7

Please sign in to comment.