summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_response.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
index f06a4275..d0429cd7 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
@@ -50,12 +50,8 @@ auto ProcessDirectoryMessage(HashFunction hash_function,
fmt::format("found invalid symlink at {}", link.name())};
}
}
- auto data = dir.SerializeAsString();
- auto digest = ArtifactDigestFactory::HashDataAs<ObjectType::File>(
- hash_function, data);
- return ArtifactBlob{std::move(digest),
- std::move(data),
- /*is_exec=*/false};
+ return ArtifactBlob::FromMemory(
+ hash_function, ObjectType::File, dir.SerializeAsString());
}
} // namespace