summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2025-01-29 16:49:02 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit952c60a8ecc4318fbd20a01fe642b6629ddf42cc (patch)
tree9f2c783b4349839b380b7a3ad14a4d85ae5b5e35 /src/buildtool/execution_api/remote/bazel/bazel_response.cpp
parent5512a2d221623d4c69ca6651a4706997e53080ab (diff)
downloadjustbuild-952c60a8ecc4318fbd20a01fe642b6629ddf42cc.tar.gz
CommonApi: Remove template parameter from UploadAndUpdateContainer
...since it works with ArtifactBlobs only.
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_response.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
index e4bc9248..19e7b972 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
@@ -294,11 +294,10 @@ auto BazelResponse::UploadTreeMessageDirectories(
}
auto const root_digest = rootdir_blob->digest;
// store or upload rootdir blob, taking maximum transfer size into account
- if (not UpdateContainerAndUpload<ArtifactDigest>(
- &dir_blobs,
- *std::move(rootdir_blob),
- /*exception_is_fatal=*/false,
- upload_callback)) {
+ if (not UpdateContainerAndUpload(&dir_blobs,
+ *std::move(rootdir_blob),
+ /*exception_is_fatal=*/false,
+ upload_callback)) {
return unexpected{fmt::format(
"failed to upload Tree with root digest {}", root_digest.hash())};
}
@@ -310,11 +309,10 @@ auto BazelResponse::UploadTreeMessageDirectories(
return unexpected{std::move(blob).error()};
}
auto const blob_digest = blob->digest;
- if (not UpdateContainerAndUpload<ArtifactDigest>(
- &dir_blobs,
- *std::move(blob),
- /*exception_is_fatal=*/false,
- upload_callback)) {
+ if (not UpdateContainerAndUpload(&dir_blobs,
+ *std::move(blob),
+ /*exception_is_fatal=*/false,
+ upload_callback)) {
return unexpected{
fmt::format("failed to upload Tree subdir with digest {}",
blob_digest.hash())};