Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interop/alts/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func main() {
opts.HandshakerServiceAddress = *hsAddr
}
altsTC := alts.NewClientCreds(opts)
// Block until the server is ready.
conn, err := grpc.NewClient(*serverAddr, grpc.WithTransportCredentials(altsTC))
if err != nil {
logger.Fatalf("grpc.NewClient(%q) = %v", *serverAddr, err)
Expand All @@ -58,7 +57,8 @@ func main() {
// Call the EmptyCall API.
ctx := context.Background()
request := &testpb.Empty{}
if _, err := grpcClient.EmptyCall(ctx, request); err != nil {
// Block until the server is ready.
if _, err := grpcClient.EmptyCall(ctx, request, grpc.WaitForReady(true)); err != nil {
logger.Fatalf("grpc Client: EmptyCall(_, %v) failed: %v", request, err)
}
logger.Info("grpc Client: empty call succeeded")
Expand Down
Loading