-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(transport): enforce 1s timeout on requests to MDS universe_domain #2393
fix(transport): enforce 1s timeout on requests to MDS universe_domain #2393
Conversation
* Temporarily return googleapis.com on MDS universe_domain timeout. closes: googleapis/google-cloud-go#9350
…artzmo/google-api-go-client into transport-get-universe-domain-timeout
internal/settings.go
Outdated
} | ||
return credsUniverseDomain, nil | ||
|
||
loop: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can all be simplified a bit. You should be able to use a single select without a loop. The select will wait until one of the channels returns a result.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
closes: googleapis/google-cloud-go#9350