diff --git a/test/cpp/interop/metrics_client.cc b/test/cpp/interop/metrics_client.cc index 1bd2a2fd781efcca7fbdb090bb10f5f6d627b21b..2865c855a2d83b9df23f3fd86e1abbb9b819555a 100644 --- a/test/cpp/interop/metrics_client.cc +++ b/test/cpp/interop/metrics_client.cc @@ -50,7 +50,7 @@ using grpc::testing::GaugeResponse; using grpc::testing::MetricsService; using grpc::testing::MetricsServiceImpl; -void PrintMetrics(grpc::string& server_address) { +void PrintMetrics(const grpc::string& server_address) { gpr_log(GPR_INFO, "creating a channel to %s", server_address.c_str()); std::shared_ptr<grpc::Channel> channel( grpc::CreateChannel(server_address, grpc::InsecureChannelCredentials()));