We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad68f56 commit 1937ba4Copy full SHA for 1937ba4
storage/grpc_client.go
@@ -27,6 +27,7 @@ import (
27
storagepb "cloud.google.com/go/storage/internal/apiv2/stubs"
28
"google.golang.org/api/iterator"
29
"google.golang.org/api/option"
30
+ "google.golang.org/api/option/internaloption"
31
iampb "google.golang.org/genproto/googleapis/iam/v1"
32
"google.golang.org/grpc"
33
"google.golang.org/grpc/codes"
@@ -88,6 +89,9 @@ func defaultGRPCOptions() []option.ClientOption {
88
89
option.WithGRPCDialOption(grpc.WithInsecure()),
90
option.WithoutAuthentication(),
91
)
92
+ } else {
93
+ // Only enable DirectPath when the emulator is not being targeted.
94
+ defaults = append(defaults, internaloption.EnableDirectPath(true))
95
}
96
97
return defaults
0 commit comments