From 7d7f4de4e43713c13c34029832347bac8162a1c7 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 19 Jul 2024 13:04:12 +0200 Subject: Use HashFunction from Storage in LocalResponse --- src/buildtool/execution_api/local/local_response.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/buildtool/execution_api/local/local_response.hpp') diff --git a/src/buildtool/execution_api/local/local_response.hpp b/src/buildtool/execution_api/local/local_response.hpp index c6214320..d0ad27bd 100644 --- a/src/buildtool/execution_api/local/local_response.hpp +++ b/src/buildtool/execution_api/local/local_response.hpp @@ -140,7 +140,7 @@ class LocalResponse final : public IExecutionResponse { link.path(), Artifact::ObjectInfo{ .digest = ArtifactDigest::Create( - HashFunction::Instance(), link.target()), + storage_.GetHashFunction(), link.target()), .type = ObjectType::Symlink}); } catch (...) { return false; @@ -152,7 +152,7 @@ class LocalResponse final : public IExecutionResponse { link.path(), Artifact::ObjectInfo{ .digest = ArtifactDigest::Create( - HashFunction::Instance(), link.target()), + storage_.GetHashFunction(), link.target()), .type = ObjectType::Symlink}); dir_symlinks.emplace(link.path()); // add it to set } catch (...) { @@ -167,7 +167,7 @@ class LocalResponse final : public IExecutionResponse { link.path(), Artifact::ObjectInfo{ .digest = ArtifactDigest::Create( - HashFunction::Instance(), link.target()), + storage_.GetHashFunction(), link.target()), .type = ObjectType::Symlink}); } catch (...) { return false; @@ -179,7 +179,7 @@ class LocalResponse final : public IExecutionResponse { link.path(), Artifact::ObjectInfo{ .digest = ArtifactDigest::Create( - HashFunction::Instance(), link.target()), + storage_.GetHashFunction(), link.target()), .type = ObjectType::Symlink}); } catch (...) { return false; -- cgit v1.2.3