Skip to content

Commit

Permalink
Fix outdated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Sep 23, 2024
1 parent ea143b7 commit ce7075d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions pelican_url/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,13 +404,14 @@ func (p *PelicanURL) PopulateFedInfo(opts ...DiscoveryOption) error {
}
}

// TODO: Figure out best way to get version into this
// var userAgent string
// if options.userAgent != "" {
// userAgent = options.userAgent
// } else {
var userAgent string
if options.userAgent != "" {
userAgent = options.userAgent
} else {
userAgent = "pelican"
}

fedInfo, err := DiscoverFederation(ctx, httpClient, options.userAgent, discoveryUrl)
fedInfo, err := DiscoverFederation(ctx, httpClient, userAgent, discoveryUrl)
if err != nil {
return err
}
Expand Down

0 comments on commit ce7075d

Please sign in to comment.