Small compiler optimization.

pull/1143/head
Nicolas "Pixel" Noble 10 years ago
parent a8c7c201a4
commit d48a969d3b
  1. 5
      src/compiler/cpp_plugin.cc

@ -58,6 +58,11 @@ class CppGrpcGenerator : public grpc::protobuf::compiler::CodeGenerator {
return false;
}
if (file->service_count() == 0) {
// No services. Do nothing.
return true;
}
grpc_cpp_generator::Parameters generator_parameters;
if (!parameter.empty()) {

Loading…
Cancel
Save