From 679ceaae57750a85ccb27ffef2448101cddd1507 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Wed, 16 May 2018 10:32:11 -0700 Subject: [PATCH] internal: fix travis failure on alts proto (#2079) --- credentials/alts/core/proto/grpc_gcp/handshaker.pb.go | 7 ++++--- credentials/alts/core/regenerate.sh | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/credentials/alts/core/proto/grpc_gcp/handshaker.pb.go b/credentials/alts/core/proto/grpc_gcp/handshaker.pb.go index c693bd73..a6154be4 100644 --- a/credentials/alts/core/proto/grpc_gcp/handshaker.pb.go +++ b/credentials/alts/core/proto/grpc_gcp/handshaker.pb.go @@ -990,8 +990,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for HandshakerService service - +// HandshakerServiceClient is the client API for HandshakerService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type HandshakerServiceClient interface { // Handshaker service accepts a stream of handshaker request, returning a // stream of handshaker response. Client is expected to send exactly one @@ -1011,7 +1012,7 @@ func NewHandshakerServiceClient(cc *grpc.ClientConn) HandshakerServiceClient { } func (c *handshakerServiceClient) DoHandshake(ctx context.Context, opts ...grpc.CallOption) (HandshakerService_DoHandshakeClient, error) { - stream, err := grpc.NewClientStream(ctx, &_HandshakerService_serviceDesc.Streams[0], c.cc, "/grpc.gcp.HandshakerService/DoHandshake", opts...) + stream, err := c.cc.NewStream(ctx, &_HandshakerService_serviceDesc.Streams[0], "/grpc.gcp.HandshakerService/DoHandshake", opts...) if err != nil { return nil, err } diff --git a/credentials/alts/core/regenerate.sh b/credentials/alts/core/regenerate.sh index 347e3172..a79c4201 100755 --- a/credentials/alts/core/regenerate.sh +++ b/credentials/alts/core/regenerate.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # Copyright 2018 gRPC authors. # # Licensed under the Apache License, Version 2.0 (the "License");