Skip to content

Commit

Permalink
update to latest api/transport surface
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo committed Dec 2, 2024
1 parent fb2a386 commit c416ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions storage/http_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ import (
"google.golang.org/api/option"
"google.golang.org/api/option/internaloption"
raw "google.golang.org/api/storage/v1"
"google.golang.org/api/transport"
htransport "google.golang.org/api/transport/http"
)

Expand Down Expand Up @@ -83,7 +82,7 @@ func newHTTPStorageClient(ctx context.Context, opts ...storageOption) (storageCl
)
// Don't error out here. The user may have passed in their own HTTP
// client which does not auth with ADC or other common conventions.
c, err := transport.AuthCreds(ctx, o...)
c, err := internaloption.AuthCreds(ctx, o)
if err == nil {
creds = c
o = append(o, option.WithAuthCredentials(creds))
Expand Down
3 changes: 1 addition & 2 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import (
"google.golang.org/api/option"
"google.golang.org/api/option/internaloption"
raw "google.golang.org/api/storage/v1"
"google.golang.org/api/transport"
htransport "google.golang.org/api/transport/http"
"google.golang.org/grpc/experimental/stats"
"google.golang.org/grpc/stats/opentelemetry"
Expand Down Expand Up @@ -163,7 +162,7 @@ func NewClient(ctx context.Context, opts ...option.ClientOption) (*Client, error

// Don't error out here. The user may have passed in their own HTTP
// client which does not auth with ADC or other common conventions.
c, err := transport.AuthCreds(ctx, opts...)
c, err := internaloption.AuthCreds(ctx, opts)
if err == nil {
creds = c
opts = append(opts, option.WithAuthCredentials(creds))
Expand Down

0 comments on commit c416ea1

Please sign in to comment.