Skip to content

Commit

Permalink
Remove deprecated grpc.WithBalancerName (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
ramymedhat committed Apr 29, 2022
1 parent 8780f11 commit 6c84898
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion go/pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,8 @@ func Dial(ctx context.Context, endpoint string, params DialParams) (*grpc.Client
opts = append(opts, grpc.WithTransportCredentials(credentials.NewTLS(tlsConfig)))
}
grpcInt := createGRPCInterceptor(params)
opts = append(opts, grpc.WithBalancerName(balancer.Name))
opts = append(opts, grpc.WithDisableServiceConfig())
opts = append(opts, grpc.WithDefaultServiceConfig(fmt.Sprintf(`{"loadBalancingConfig": [{"%s":{}}]}`, balancer.Name)))
opts = append(opts, grpc.WithUnaryInterceptor(grpcInt.GCPUnaryClientInterceptor))
opts = append(opts, grpc.WithStreamInterceptor(grpcInt.GCPStreamClientInterceptor))

Expand Down

0 comments on commit 6c84898

Please sign in to comment.