From 1dda220300b704dfbe28dad9586246571c49c503 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 23 Jan 2025 14:41:26 +0100 Subject: BazelNetworkReader: Use ArtifactDigest in IncrementalReader ...and while there, pass digests needed to be read by pointer to IncrementalReader to avoid an extra copy. --- src/buildtool/execution_api/remote/bazel/bazel_response.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/execution_api/remote/bazel/bazel_response.cpp') 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 { // 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( -- cgit v1.2.3