aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/qps
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2017-08-09 22:03:16 -0700
committerGravatar Vijay Pai <vpai@google.com>2017-08-09 22:03:16 -0700
commite1418e4ab10344469bc975c32f340f07a3becb45 (patch)
tree8ab251db49b5b61e45585c9168e68d6092e5ab34 /test/cpp/qps
parenta27680b597111bc3ddd1272a21be6d35a296b349 (diff)
Switch to idiomatic Slice API
Diffstat (limited to 'test/cpp/qps')
-rw-r--r--test/cpp/qps/server_async.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/cpp/qps/server_async.cc b/test/cpp/qps/server_async.cc
index 122976c397..8b00bcfeaf 100644
--- a/test/cpp/qps/server_async.cc
+++ b/test/cpp/qps/server_async.cc
@@ -550,8 +550,7 @@ static Status ProcessGenericRPC(const PayloadConfig &payload_config,
ByteBuffer *response) {
int resp_size = payload_config.bytebuf_params().resp_size();
std::unique_ptr<char[]> buf(new char[resp_size]);
- grpc_slice s = grpc_slice_from_copied_buffer(buf.get(), resp_size);
- Slice slice(s, Slice::STEAL_REF);
+ Slice slice(buf.get(), resp_size);
*response = ByteBuffer(&slice, 1);
return Status::OK;
}