summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
diff options
context:
space:
mode:
authorSascha Roloff <sascha.roloff@huawei.com>2022-10-10 13:52:04 +0200
committerSascha Roloff <sascha.roloff@huawei.com>2022-10-11 16:42:39 +0200
commit2680d58bab825e0584d710156d86a887a88f0a4f (patch)
treebba1a60f868daed00cd3be8997c71f7d1aced701 /src/buildtool/execution_api/remote/bazel/bazel_api.cpp
parent06190c253f476c4bde74aa048cd53233091ac3cd (diff)
downloadjustbuild-2680d58bab825e0584d710156d86a887a88f0a4f.tar.gz
Refactor ReadTreeInfos function names and add documentation
Diffstat (limited to 'src/buildtool/execution_api/remote/bazel/bazel_api.cpp')
-rw-r--r--src/buildtool/execution_api/remote/bazel/bazel_api.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
index 34cb129e..99d77a5e 100644
--- a/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
+++ b/src/buildtool/execution_api/remote/bazel/bazel_api.cpp
@@ -68,8 +68,8 @@ auto BazelApi::CreateAction(
auto const& info = artifacts_info[i];
if (IsTreeObject(info.type)) {
// read object infos from sub tree and call retrieve recursively
- auto const infos =
- network_->ReadTreeInfos(info.digest, output_paths[i]);
+ auto const infos = network_->RecursivelyReadTreeLeafs(
+ info.digest, output_paths[i]);
if (not infos or not RetrieveToPaths(infos->second, infos->first)) {
return false;
}
@@ -170,7 +170,7 @@ auto BazelApi::CreateAction(
std::vector<bazel_re::Digest> blob_digests{};
for (auto const& info : missing_artifacts_info) {
if (IsTreeObject(info.type)) {
- auto const infos = network_->ReadTreeInfosDirect(
+ auto const infos = network_->ReadDirectTreeEntries(
info.digest, std::filesystem::path{});
if (not infos or not RetrieveToCas(infos->second, api)) {
return false;