Skip to content

Commit

Permalink
gapic: remove disable serv config dial opt (#812)
Browse files Browse the repository at this point in the history
Since googleapis/google-api-go-client#1260 we need to start allowing the service config to be pulled.

cc @mohanli-ml
  • Loading branch information
noahdietz committed Nov 12, 2021
1 parent 4ce62bd commit 3370d47
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion internal/gengapic/gengrpc.go
Expand Up @@ -199,7 +199,6 @@ func (g *generator) grpcClientOptions(serv *descriptor.ServiceDescriptorProto, s
p(" internaloption.WithDefaultAudience(%q),", generateDefaultAudience(host))
p(" internaloption.WithDefaultScopes(DefaultAuthScopes()...),")
p(" internaloption.EnableJwtWithScope(),")
p(" option.WithGRPCDialOption(grpc.WithDisableServiceConfig()),")
p(" option.WithGRPCDialOption(grpc.WithDefaultCallOptions(")
p(" grpc.MaxCallRecvMsgSize(math.MaxInt32))),")
p(" }")
Expand Down
1 change: 0 additions & 1 deletion internal/gengapic/testdata/empty_opt.want
Expand Up @@ -22,7 +22,6 @@ func defaultGRPCClientOptions() []option.ClientOption {
internaloption.WithDefaultAudience("https://foo.googleapis.com/"),
internaloption.WithDefaultScopes(DefaultAuthScopes()...),
internaloption.EnableJwtWithScope(),
option.WithGRPCDialOption(grpc.WithDisableServiceConfig()),
option.WithGRPCDialOption(grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32))),
}
Expand Down
1 change: 0 additions & 1 deletion internal/gengapic/testdata/foo_opt.want
Expand Up @@ -22,7 +22,6 @@ func defaultFooGRPCClientOptions() []option.ClientOption {
internaloption.WithDefaultAudience("https://foo.googleapis.com/"),
internaloption.WithDefaultScopes(DefaultAuthScopes()...),
internaloption.EnableJwtWithScope(),
option.WithGRPCDialOption(grpc.WithDisableServiceConfig()),
option.WithGRPCDialOption(grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32))),
}
Expand Down
1 change: 0 additions & 1 deletion internal/gengapic/testdata/host_port_opt.want
Expand Up @@ -20,7 +20,6 @@ func defaultBarGRPCClientOptions() []option.ClientOption {
internaloption.WithDefaultAudience("https://foo.googleapis.com/"),
internaloption.WithDefaultScopes(DefaultAuthScopes()...),
internaloption.EnableJwtWithScope(),
option.WithGRPCDialOption(grpc.WithDisableServiceConfig()),
option.WithGRPCDialOption(grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32))),
}
Expand Down
1 change: 0 additions & 1 deletion internal/gengapic/testdata/iam_override_opt.want
Expand Up @@ -19,7 +19,6 @@ func defaultBazGRPCClientOptions() []option.ClientOption {
internaloption.WithDefaultAudience("https://foo.googleapis.com/"),
internaloption.WithDefaultScopes(DefaultAuthScopes()...),
internaloption.EnableJwtWithScope(),
option.WithGRPCDialOption(grpc.WithDisableServiceConfig()),
option.WithGRPCDialOption(grpc.WithDefaultCallOptions(
grpc.MaxCallRecvMsgSize(math.MaxInt32))),
}
Expand Down

0 comments on commit 3370d47

Please sign in to comment.