Added the missing header file and fixed a syntax error.

pull/11787/head
Guantao Liu 8 years ago
parent ac9fdfbc40
commit 91d8f0b5a8
  1. 3
      test/cpp/qps/driver.cc
  2. 1
      test/cpp/qps/qps_worker.h

@ -285,8 +285,7 @@ std::unique_ptr<ScenarioResult> RunScenario(
if (!servers[i].stream->Read(&init_status)) {
gpr_log(GPR_ERROR, "Server %zu did not yield initial status", i);
}
if (qps_server_target_override != NULL &&
strlen(qps_server_target_override) > 0) {
if (qps_server_target_override.length() > 0) {
// overriding the qps server target only works if there is 1 server
GPR_ASSERT(num_servers == 1);
client_config.add_server_targets(qps_server_target_override);

@ -22,6 +22,7 @@
#include <memory>
#include <grpc/support/atm.h>
#include <grpc++/support/config.h>
namespace grpc {

Loading…
Cancel
Save