summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bytestream_client.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
index 88abe6fd..04f88dda 100644
--- a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
@@ -115,11 +115,9 @@ class ByteStreamClient {
google::bytestream::WriteResponse response{};
auto writer = stub_->Write(&ctx, &response);
- auto* allocated_data =
- std::make_unique<std::string>(kChunkSize, '\0').release();
google::bytestream::WriteRequest request{};
request.set_resource_name(resource_name);
- request.set_allocated_data(allocated_data);
+ request.mutable_data()->resize(kChunkSize, '\0');
std::size_t pos{};
do {