From dc273f4ce89dc6e562c4a99fd394c92f56eeb63f Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 24 May 2024 17:19:35 +0200 Subject: Convert BlobContainer to a template ...where the template parameter is the type of a digest. --- src/buildtool/execution_api/bazel_msg/bazel_blob.hpp | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'src/buildtool/execution_api/bazel_msg/bazel_blob.hpp') diff --git a/src/buildtool/execution_api/bazel_msg/bazel_blob.hpp b/src/buildtool/execution_api/bazel_msg/bazel_blob.hpp index 75f174b5..bac9d273 100644 --- a/src/buildtool/execution_api/bazel_msg/bazel_blob.hpp +++ b/src/buildtool/execution_api/bazel_msg/bazel_blob.hpp @@ -15,20 +15,10 @@ #ifndef INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_BLOB_HPP #define INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_BLOB_HPP -#include -#include // std::move - #include "src/buildtool/common/bazel_types.hpp" +#include "src/buildtool/execution_api/common/content_blob_container.hpp" -struct BazelBlob { - BazelBlob(bazel_re::Digest mydigest, std::string mydata, bool is_exec) - : digest{std::move(mydigest)}, - data{std::move(mydata)}, - is_exec{is_exec} {} - - bazel_re::Digest digest{}; - std::string data{}; - bool is_exec{}; // optional: hint to put the blob in executable CAS -}; +using BazelBlob = ContentBlob; +using BlobContainer = ContentBlobContainer; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_BAZEL_MSG_BAZEL_BLOB_HPP -- cgit v1.2.3