Skip to content

Commit

Permalink
feat(spanner): allow non-default service accounts (#8488)
Browse files Browse the repository at this point in the history
  • Loading branch information
ko3a4ok committed Aug 25, 2023
1 parent ee274c7 commit c90dd00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spanner/client.go
Expand Up @@ -296,6 +296,7 @@ func allClientOpts(numChannels int, compression string, userOpts ...option.Clien
option.WithGRPCConnectionPool(numChannels),
option.WithUserAgent(fmt.Sprintf("spanner-go/v%s", internal.Version)),
internaloption.EnableDirectPath(true),
internaloption.AllowNonDefaultServiceAccount(true),
}
if compression == "gzip" {
userOpts = append(userOpts, option.WithGRPCDialOption(grpc.WithDefaultCallOptions(
Expand Down

0 comments on commit c90dd00

Please sign in to comment.