E.g.
|
func DoEmptyUnaryCall(tc testgrpc.TestServiceClient, args ...grpc.CallOption) { |
|
reply, err := tc.EmptyCall(context.Background(), &testpb.Empty{}, args...) |
This function and all others in this file should accept a context, which would allow passing RPC timeouts, metadata, etc. context.Background is really only supposed to be called by main/TestXyz functions wherever possible.