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 }