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-23 14:41:26 +0100
committerMaksim Denisov <denisov.maksim@huawei.com>2025-02-07 14:58:04 +0100
commit1dda220300b704dfbe28dad9586246571c49c503 (patch)
tree5dab68bc60d88805300ff243ce29e4b454e6f34c /src/buildtool/execution_api/remote/bazel/bazel_response.cpp
parentd5a957afddb68c216184dff0e90e16c083be1134 (diff)
downloadjustbuild-1dda220300b704dfbe28dad9586246571c49c503.tar.gz
BazelNetworkReader: Use ArtifactDigest in IncrementalReader
...and while there, pass digests needed to be read by pointer to IncrementalReader to avoid an extra copy.
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_response.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
index ad418000..81f8310d 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_response.cpp
@@ -238,7 +238,7 @@ auto BazelResponse::Populate() noexcept -> std::optional<std::string> {
// collect root digests from trees and store them
auto reader = network_->CreateReader();
int pos = 0;
- for (auto tree_blobs : reader.ReadIncrementally(tree_digests)) {
+ for (auto tree_blobs : reader.ReadIncrementally(&tree_digests)) {
for (auto const& tree_blob : tree_blobs) {
try {
auto tree = BazelMsgFactory::MessageFromString<bazel_re::Tree>(