summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/serve/mr_git_api.cpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-11-18 16:36:30 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-12-04 18:03:44 +0100
commita8112042b57b7a1be8b37cce46d279fd0ff9e861 (patch)
tree8d6cd5607b70a9471ae22425e224c0fef5df18d6 /src/buildtool/execution_api/serve/mr_git_api.cpp
parent8c15fbdd149fd34ddc024f2ba93e650dab81098b (diff)
downloadjustbuild-a8112042b57b7a1be8b37cce46d279fd0ff9e861.tar.gz
Rename MRApiUtils to RehashUtils
Diffstat (limited to 'src/buildtool/execution_api/serve/mr_git_api.cpp')
-rw-r--r--src/buildtool/execution_api/serve/mr_git_api.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/buildtool/execution_api/serve/mr_git_api.cpp b/src/buildtool/execution_api/serve/mr_git_api.cpp
index 46bc4c83..6630e891 100644
--- a/src/buildtool/execution_api/serve/mr_git_api.cpp
+++ b/src/buildtool/execution_api/serve/mr_git_api.cpp
@@ -19,7 +19,7 @@
#include "src/buildtool/execution_api/bazel_msg/bazel_msg_factory.hpp"
#include "src/buildtool/execution_api/git/git_api.hpp"
-#include "src/buildtool/execution_api/serve/utils.hpp"
+#include "src/buildtool/execution_api/utils/rehash_utils.hpp"
#include "src/buildtool/file_system/object_type.hpp"
#include "src/buildtool/logging/log_level.hpp"
#include "src/buildtool/logging/logger.hpp"
@@ -56,7 +56,7 @@ auto MRGitApi::RetrieveToCas(
[native_sc = native_storage_config_,
compat_sc = compat_storage_config_](ArtifactDigest const& digest)
-> expected<std::optional<Artifact::ObjectInfo>, std::string> {
- return MRApiUtils::ReadRehashedDigest(
+ return RehashUtils::ReadRehashedDigest(
digest, *native_sc, *compat_sc, /*from_git=*/true);
};
auto store_rehashed =
@@ -65,12 +65,12 @@ auto MRGitApi::RetrieveToCas(
ArtifactDigest const& source_digest,
ArtifactDigest const& target_digest,
ObjectType obj_type) -> std::optional<std::string> {
- return MRApiUtils::StoreRehashedDigest(source_digest,
- target_digest,
- obj_type,
- *native_sc,
- *compat_sc,
- /*from_git=*/true);
+ return RehashUtils::StoreRehashedDigest(source_digest,
+ target_digest,
+ obj_type,
+ *native_sc,
+ *compat_sc,
+ /*from_git=*/true);
};
// collect the native blobs and rehash them as compatible to be able to