Fixed hanging client declaration, server address can be passed now
diff --git a/test/cpp/util/benchmark_config.cc b/test/cpp/util/benchmark_config.cc
index 250bb7a..f8cfabd 100644
--- a/test/cpp/util/benchmark_config.cc
+++ b/test/cpp/util/benchmark_config.cc
@@ -45,6 +45,8 @@
DEFINE_string(sys_info, "", "System information");
+DEFINE_string(server_address, "localhost:50052", "Address of the performance database server");
+
// In some distros, gflags is in the namespace google, and in some others,
// in gflags. This hack is enabling us to find both.
namespace google {}
@@ -67,7 +69,7 @@
}
if(FLAGS_report_metrics_db) {
composite_reporter->add(
- std::unique_ptr<Reporter>(new UserDatabaseReporter("UserDataReporter", FLAGS_access_token, FLAGS_test_name, FLAGS_sys_info)));
+ std::unique_ptr<Reporter>(new PerfDbReporter("PerfDbReporter", FLAGS_access_token, FLAGS_test_name, FLAGS_sys_info, FLAGS_server_address)));
}
return std::shared_ptr<Reporter>(composite_reporter);