diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-19 13:04:12 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-22 17:01:13 +0200 |
commit | 7d7f4de4e43713c13c34029832347bac8162a1c7 (patch) | |
tree | 896f7b7f1eb6fb47517a000857b7eaa9c8fa2dd6 /src/buildtool/execution_api/local/local_api.hpp | |
parent | b2dff03c841f159b474f445eb558a4ee153b1741 (diff) | |
download | justbuild-7d7f4de4e43713c13c34029832347bac8162a1c7.tar.gz |
Use HashFunction from Storage in LocalResponse
Diffstat (limited to 'src/buildtool/execution_api/local/local_api.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_api.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/local/local_api.hpp b/src/buildtool/execution_api/local/local_api.hpp index e8ba0831..b407297d 100644 --- a/src/buildtool/execution_api/local/local_api.hpp +++ b/src/buildtool/execution_api/local/local_api.hpp @@ -34,7 +34,6 @@ #include "src/buildtool/common/repository_config.hpp" #include "src/buildtool/compatibility/compatibility.hpp" #include "src/buildtool/compatibility/native_support.hpp" -#include "src/buildtool/crypto/hash_function.hpp" #include "src/buildtool/execution_api/bazel_msg/bazel_blob_container.hpp" #include "src/buildtool/execution_api/common/artifact_blob_container.hpp" #include "src/buildtool/execution_api/common/blob_tree.hpp" @@ -216,9 +215,9 @@ class LocalApi final : public IExecutionApi { ArtifactDigest digest = IsTreeObject(info.type) ? ArtifactDigest::Create<ObjectType::Tree>( - HashFunction::Instance(), *content) + storage_config_.hash_function, *content) : ArtifactDigest::Create<ObjectType::File>( - HashFunction::Instance(), *content); + storage_config_.hash_function, *content); // Collect blob and upload to remote CAS if transfer size reached. if (not UpdateContainerAndUpload<ArtifactDigest>( |