Skip to content
Snippets Groups Projects
Commit 6049ebd8 authored by Julien Boeuf's avatar Julien Boeuf
Browse files

More C++ fixes (the merge did not quite work...).

parent 9a437c2c
No related branches found
No related tags found
No related merge requests found
...@@ -89,9 +89,9 @@ StressTestInteropClient::StressTestInteropClient( ...@@ -89,9 +89,9 @@ StressTestInteropClient::StressTestInteropClient(
test_duration_secs_(test_duration_secs), test_duration_secs_(test_duration_secs),
sleep_duration_ms_(sleep_duration_ms) { sleep_duration_ms_(sleep_duration_ms) {
// TODO(sreek): This will change once we add support for other tests // TODO(sreek): This will change once we add support for other tests
// that won't work with InsecureCredentials() // that won't work with InsecureChannelCredentials()
std::shared_ptr<Channel> channel( std::shared_ptr<Channel> channel(
CreateChannel(server_address, InsecureCredentials())); CreateChannel(server_address, InsecureChannelCredentials()));
interop_client_.reset(new InteropClient(channel, false)); interop_client_.reset(new InteropClient(channel, false));
} }
......
...@@ -161,7 +161,7 @@ std::unique_ptr<ScenarioResult> RunScenario( ...@@ -161,7 +161,7 @@ std::unique_ptr<ScenarioResult> RunScenario(
// where class contained in std::vector must have a copy constructor // where class contained in std::vector must have a copy constructor
auto* servers = new ServerData[num_servers]; auto* servers = new ServerData[num_servers];
for (size_t i = 0; i < num_servers; i++) { for (size_t i = 0; i < num_servers; i++) {
servers[i].stub = Worker::NewStub( servers[i].stub = WorkerService::NewStub(
CreateChannel(workers[i], InsecureChannelCredentials())); CreateChannel(workers[i], InsecureChannelCredentials()));
ServerArgs args; ServerArgs args;
result_server_config = server_config; result_server_config = server_config;
...@@ -188,7 +188,7 @@ std::unique_ptr<ScenarioResult> RunScenario( ...@@ -188,7 +188,7 @@ std::unique_ptr<ScenarioResult> RunScenario(
// where class contained in std::vector must have a copy constructor // where class contained in std::vector must have a copy constructor
auto* clients = new ClientData[num_clients]; auto* clients = new ClientData[num_clients];
for (size_t i = 0; i < num_clients; i++) { for (size_t i = 0; i < num_clients; i++) {
clients[i].stub = Worker::NewStub( clients[i].stub = WorkerService::NewStub(
CreateChannel(workers[i + num_servers], InsecureChannelCredentials())); CreateChannel(workers[i + num_servers], InsecureChannelCredentials()));
ClientArgs args; ClientArgs args;
result_client_config = client_config; result_client_config = client_config;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment