Skip to content

Commit

Permalink
feat(bigtable): allow non-default service account in DirectPath (#9040)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohanli-ml committed Apr 16, 2024
1 parent ec2ae43 commit c2df09c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bigtable/bigtable.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func NewClientWithConfig(ctx context.Context, project, instance string, config C
// Attempts direct access to spanner service over gRPC to improve throughput,
// whether the attempt is allowed is totally controlled by service owner.
o = append(o, internaloption.EnableDirectPath(true))
// Allow non-default service account in DirectPath.
o = append(o, internaloption.AllowNonDefaultServiceAccount(true))
o = append(o, opts...)
connPool, err := gtransport.DialPool(ctx, o...)
if err != nil {
Expand Down

0 comments on commit c2df09c

Please sign in to comment.