summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-03 13:08:55 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-06-04 13:47:11 +0200
commitf556af6129667569ff7d0ef1d5c3e12959233822 (patch)
treec32142efd1af8359348df61b176e930cc57c8eca /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parent94cfdd9fd62c8e21ef4d0881d2a248154afc1a00 (diff)
downloadjustbuild-f556af6129667569ff7d0ef1d5c3e12959233822.tar.gz
bazel_network: Change UploadBlobs to also accept an rvalue
This unifies the signature of all uploader functions consuming a BlobContainer type.
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
index 00f7308c..0a48a748 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
@@ -440,7 +440,8 @@ auto BazelApi::CreateAction(
[[nodiscard]] auto BazelApi::Upload(ArtifactBlobContainer&& blobs,
bool skip_find_missing) noexcept -> bool {
auto bazel_blobs = ConvertToBazelBlobContainer(std::move(blobs));
- return bazel_blobs ? network_->UploadBlobs(*bazel_blobs, skip_find_missing)
+ return bazel_blobs ? network_->UploadBlobs(std::move(*bazel_blobs),
+ skip_find_missing)
: false;
}