Dealt with a nit

pull/4762/head
vjpai 9 years ago
parent d3ea2708cc
commit cd624d2eee
  1. 2
      test/cpp/qps/qps_worker.cc

@ -197,7 +197,7 @@ class WorkerServiceImpl GRPC_FINAL : public WorkerService::Service {
if (!args.has_setup()) { if (!args.has_setup()) {
return Status(StatusCode::INVALID_ARGUMENT, ""); return Status(StatusCode::INVALID_ARGUMENT, "");
} }
if (server_port_) { if (server_port_ != 0) {
args.mutable_setup()->set_port(server_port_); args.mutable_setup()->set_port(server_port_);
} }
auto server = CreateServer(args.setup()); auto server = CreateServer(args.setup());

Loading…
Cancel
Save