chore: rename variable and improve documentation.

This commit is contained in:
Guillaume Blaquiere
2021-09-15 10:15:15 +02:00
parent 8e4ea9fa54
commit e81efe311a
3 changed files with 17 additions and 12 deletions

View File

@@ -142,7 +142,7 @@ func (c *Config) tokenSource(ctx context.Context, tokenURLValidPats []*regexp.Re
ts.conf.Scopes = []string{"https://www.googleapis.com/auth/cloud-platform"}
imp := ImpersonateTokenSource{
Ctx: ctx,
Url: c.ServiceAccountImpersonationURL,
URL: c.ServiceAccountImpersonationURL,
Scopes: scopes,
Ts: oauth2.ReuseTokenSource(nil, ts),
}