Skip to content

Commit

Permalink
Fixed erronous mentions to SecretReader in comments
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci committed Jun 7, 2024
1 parent fbd2317 commit 43e45c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/http_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ func (s *fileSecret) Immutable() bool {
return false
}

// refSecret fetches a single secret from a SecretReader manager.
// refSecret fetches a single secret from a SecretManager.
type refSecret struct {
ref string
manager SecretManager // manager is expected to be not nil.
Expand Down Expand Up @@ -948,7 +948,7 @@ func (rt *oauth2RoundTripper) RoundTrip(req *http.Request) (*http.Response, erro
needsInit = rt.lastRT.Source == nil
rt.mtx.RUnlock()

// Fetch the secret if it's our first run or always if the SecretReader can change.
// Fetch the secret if it's our first run or always if the secret can change.
if !rt.clientSecret.Immutable() || needsInit {
newSecret, err := rt.clientSecret.Fetch(req.Context())
if err != nil {
Expand Down

0 comments on commit 43e45c3

Please sign in to comment.