Skip to content

Commit

Permalink
restore transport
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Jan 17, 2024
1 parent dfc4c18 commit c59f588
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions transport/http/dial.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import (
"context"
"crypto/tls"
"errors"
"fmt"
"net"
"net/http"
"time"
Expand Down Expand Up @@ -89,11 +88,6 @@ func newTransport(ctx context.Context, base http.RoundTripper, settings *interna
if err != nil {
return nil, err
}
// TODO(chrisdsmith): Closes: CL-R5 for HTTP (remove this note before publication)
// TODO(chrisdsmith): Closes: CL-R5.2 (remove this note before publication)
if settings.GetUniverseDomain() != creds.UniverseDomain() {
return nil, errUniverseNotMatch(settings.GetUniverseDomain(), creds.UniverseDomain())
}
paramTransport.quotaProject = internal.GetQuotaProject(creds, settings.QuotaProject)
ts := creds.TokenSource
if settings.ImpersonationConfig == nil && settings.TokenSource != nil {
Expand All @@ -107,15 +101,6 @@ func newTransport(ctx context.Context, base http.RoundTripper, settings *interna
return trans, nil
}

func errUniverseNotMatch(settingsUD, credsUD string) error {
return fmt.Errorf(
"the configured universe domain (%s) does not match the universe "+
"domain found in the credentials (%s). If you haven't configured "+
"WithUniverseDomain explicitly, googleapis.com is the default",
settingsUD,
credsUD)
}

func newSettings(opts []option.ClientOption) (*internal.DialSettings, error) {
var o internal.DialSettings
for _, opt := range opts {
Expand Down

0 comments on commit c59f588

Please sign in to comment.