diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-06-03 13:08:55 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-06-04 13:47:11 +0200 |
commit | f556af6129667569ff7d0ef1d5c3e12959233822 (patch) | |
tree | c32142efd1af8359348df61b176e930cc57c8eca /src/buildtool/execution_api/remote/bazel/bazel_action.cpp | |
parent | 94cfdd9fd62c8e21ef4d0881d2a248154afc1a00 (diff) | |
download | justbuild-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_action.cpp')
-rw-r--r-- | src/buildtool/execution_api/remote/bazel/bazel_action.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_action.cpp b/src/buildtool/execution_api/remote/bazel/bazel_action.cpp index c46de66b..f96f4774 100644 --- a/src/buildtool/execution_api/remote/bazel/bazel_action.cpp +++ b/src/buildtool/execution_api/remote/bazel/bazel_action.cpp @@ -72,7 +72,8 @@ auto BazelAction::Execute(Logger const* logger) noexcept } } - if (ExecutionEnabled(cache_flag_) and network_->UploadBlobs(blobs)) { + if (ExecutionEnabled(cache_flag_) and + network_->UploadBlobs(std::move(blobs))) { if (auto output = network_->ExecuteBazelActionSync(action)) { if (cache_flag_ == CacheFlag::PretendCached) { // ensure the same id is created as if caching were enabled |