diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-01-23 14:41:26 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-07 14:58:04 +0100 |
commit | 1dda220300b704dfbe28dad9586246571c49c503 (patch) | |
tree | 5dab68bc60d88805300ff243ce29e4b454e6f34c /src/buildtool/execution_api/remote/bazel/bazel_response.cpp | |
parent | d5a957afddb68c216184dff0e90e16c083be1134 (diff) | |
download | justbuild-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.cpp | 2 |
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>( |