diff options
author | 2017-07-14 17:33:19 -0700 | |
---|---|---|
committer | 2017-07-14 17:33:19 -0700 | |
commit | ac9fdfbc40507a6c5453b171561537ee9cafe61a (patch) | |
tree | eee5bdfcaa3dd5d193504961002f9ff038952608 /test/cpp/qps/worker.cc | |
parent | e72b5d6ab8a48181919181b5bdb4327ba263d07f (diff) |
Removed unnecessary default values and fixed sanity.
Diffstat (limited to 'test/cpp/qps/worker.cc')
-rw-r--r-- | test/cpp/qps/worker.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/cpp/qps/worker.cc b/test/cpp/qps/worker.cc index 7a8036327f..27010b7315 100644 --- a/test/cpp/qps/worker.cc +++ b/test/cpp/qps/worker.cc @@ -27,10 +27,11 @@ #include "test/cpp/qps/qps_worker.h" #include "test/cpp/util/test_config.h" +#include "test/cpp/util/test_credentials_provider.h" DEFINE_int32(driver_port, 0, "Port for communication with driver"); DEFINE_int32(server_port, 0, "Port for operation as a server"); -DEFINE_string(credential_type, "INSECURE_CREDENTIALS", +DEFINE_string(credential_type, grpc::testing::kInsecureCredentialsType, "Credential type for communication with driver"); static bool got_sigint = false; @@ -41,8 +42,7 @@ namespace grpc { namespace testing { static void RunServer() { - QpsWorker worker(FLAGS_driver_port, FLAGS_server_port, - FLAGS_credential_type.c_str()); + QpsWorker worker(FLAGS_driver_port, FLAGS_server_port, FLAGS_credential_type); while (!got_sigint && !worker.Done()) { gpr_sleep_until(gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), |