From 36863543bc7a29e359067400263473a8223eba20 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 14 May 2018 13:04:17 +0900 Subject: [PATCH] ing --- golang/central-api.pb.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/golang/central-api.pb.go b/golang/central-api.pb.go index 6b25a0a..ef58d40 100644 --- a/golang/central-api.pb.go +++ b/golang/central-api.pb.go @@ -183,8 +183,9 @@ var _ grpc.ClientConn // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion4 -// Client API for CentralAPI service - +// CentralAPIClient is the client API for CentralAPI service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CentralAPIClient interface { Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) } @@ -199,7 +200,7 @@ func NewCentralAPIClient(cc *grpc.ClientConn) CentralAPIClient { func (c *centralAPIClient) Exec(ctx context.Context, in *ServerInput, opts ...grpc.CallOption) (*ServerOutput, error) { out := new(ServerOutput) - err := grpc.Invoke(ctx, "/CentralAPI/exec", in, out, c.cc, opts...) + err := c.cc.Invoke(ctx, "/CentralAPI/exec", in, out, opts...) if err != nil { return nil, err }