summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bytestream_client.hpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bytestream_client.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
index 213e4793..a85fa565 100644
--- a/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
+++ b/src/buildtool/execution_api/remote/bazel/bytestream_client.hpp
@@ -104,7 +104,7 @@ class ByteStreamClient {
[[nodiscard]] auto Read(std::string const& instance_name,
ArtifactDigest const& digest) const noexcept
- -> std::optional<std::string> {
+ -> std::optional<ArtifactBlob> {
auto reader = IncrementalRead(instance_name, digest);
std::string output{};
auto data = reader.Next();
@@ -115,7 +115,7 @@ class ByteStreamClient {
if (not data) {
return std::nullopt;
}
- return output;
+ return ArtifactBlob{digest, std::move(output), /*is_exec=*/false};
}
[[nodiscard]] auto Write(std::string const& instance_name,